Hi, i was trying to send mail with excel(2003 version) attachment. But in the result mail the attachment is not visible in outlook 2003, people cant see the attachment. It is visible and people can open it in outlook 2007 through the same mail.Code below. Any idea why it is behaving like this?
use Mail::Sender; my $recipients = 'some@one.com'; my $sender = new Mail::Sender {smtp => 'smtp.com'}; if ($sender->OpenMultipart({from => 'some@one.com', to => $recipients +, cc =>'some@one.com', subject => "test", subtype => 'related', boundary => 'boundary-test-1', type => 'multipart/related'}) > 0) { $sender->Attach( {description => 'html body', ctype => 'text/html; charset=us-ascii', encoding => '7bit', disposition => 'NONE', file => "finalhtml.html" }); $sender->Attach( {description => 'ed\'s gif', ctype => 'application/vnd.ms-excel', encoding => 'base64', disposition => "inline; ", file => "some.xls" }); $sender->Close(1) or die "Close failed!$Mail::Sender::Error\n"; } else { die "Cannot send mail: $Mail::Sender::Error\n"; }
In reply to Mail::Sender issue with attachment by satyas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |