gube has asked for the wisdom of the Perl Monks concerning the following question:
I am first time using MIME::Lite module. I am getting error by using this code. Please anyone help me how to attach an gif or anyother file using MIME::Lite. Mention what mistake in the below code.
Thanks in advance
use MIME::Lite; ### Start with a simple text message: $msg = MIME::Lite->new( From =>'vijay@india.com', To =>'vijay@yahoo.co.in', Subject =>'A message with 2 parts...', Type =>'TEXT', Data =>"Here's the GIF file you wanted" ); ### Attach a part... the make the message a multipart automaticall +y: $msg->attach(Type =>'image/gif', Path =>'e:\', Filename =>'logo.gif' ); $msg->send();
Regards,
s,,aaagzas3uzttazs444ss12b3a222aaaamkyae,s,,y,azst1-4mky,,d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to send an attachment using MIME::Lite?
by trammell (Priest) on May 17, 2005 at 02:22 UTC | |
|
Re: How to send an attachment using MIME::Lite?
by bradcathey (Prior) on May 17, 2005 at 02:32 UTC | |
|
Re: How to send an attachment using MIME::Lite?
by gube (Parson) on May 17, 2005 at 03:01 UTC |