
KevinR
Veteran

Jul 20, 2008, 12:58 PM
Post #2 of 2
(204 views)
|
|
Re: [zaxxon25] Issue with attaching 2 files in email using Perl Sendmail
[In reply to]
|
Can't Post
|
|
well, at minimum these need to be fixed: my %mail = ( To => "abc@yahoo.com", From => "def@yahoo.com", Cc => "hij@yahoo.com", use single-quotes around the right side: my %mail = ( To => 'abc@yahoo.com', From => 'def@yahoo.com', Cc => 'hij@yahoo.com', oterwise perl will think @yahoo is an array and you will end up with: abc.com instead of abc@yahoo.com I already suggested you try MIME::Lite. Since I do not know what all is involved to construct a multipart/mixed email I have no idea what is wrong with your code besides the errors above. Why can't you use MIME::Lite? If you can't install it you can use it more than likely use via the lib pragma: use lib qw(/path/to/files)' use MIME::Lite; put the MIME::Lite source code in the /path/to/files folder and perl will find it. -------------------------------------------------
|