Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: MIME::Lite & sendmail

by gasho (Beadle)
on Jul 24, 2006 at 13:55 UTC ( [id://563268]=note: print w/replies, xml ) Need Help??


in reply to MIME::Lite & sendmail

This is what is working for me
### Create the multipart container $msg = MIME::Lite->new ( From => $from_address, To => $to_address, Cc => $to_cc, Subject => $subject, Type =>'multipart/mixed' ) or die "Error creating multipart container: $!\n"; ### Add the text message part $msg->attach ( Type => 'TEXT', Data => $message_body ) or die "Error adding the text message part: $!\n"; ### Add the xls file $msg->attach ( Type => 'application/xls', Path => $my_file_xls, Filename => $your_file_xls, Disposition => 'attachment' ) or die "Error adding $file: $!\n"; ### Send the Message MIME::Lite->send('smtp', $mail_host, Timeout=>60); $msg->send;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://563268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found