CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
File Attachments

 



jumaru
Deleted

Apr 14, 2000, 6:37 PM

Post #1 of 2 (491 views)
File Attachments Can't Post

how to attach a file to email ??


Cure
User

Apr 15, 2000, 10:11 AM

Post #2 of 2 (491 views)
Re: File Attachments [In reply to] Can't Post

Hi

perldoc MIME::Lite

example

use MIME::Lite;


#Create a multipart message (i.e., one with attachments):


$msg = new MIME::Lite
From =>'joh@doe.net',
To =>'jon@doe,net',
Cc =>'john@doe,net, some@more.com',
Subject =>'A message with 2 parts...',
Type =>'multipart/mixed';



attach $msg
Type =>'TEXT',
Data =>"Here's the GIF file you wanted";
attach $msg
Type =>'image/gif',
Encoding =>'base64',
Path =>'cure.gif',
Filename =>'cure.gif';


$msg->send;


Cure

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives