LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Dennis Wicks Date: Wed Jul 1 10:03:10 2009 Subject: Re: Need help with Mail::Sender
Jeff Chimene wrote the following on 06/26/2009 10:14 AM: > I don't see glaringly wrong with it off the top of my head. > > You might try some things: > > * Split the 'content_id' value into its own parameter > * Let Mail::Sender supply the "boundary" parameter > * Employ the 'debug' parameter in the object create call & write a log > > I've been using Mail::Sender for > 7 yrs & found it quite > bullet-proof. I do recall that it was a bitch to get everything > working. I use it to send attachments as well as inline images > >> ref $sender->Attach({description => $description >> , >> ctype => 'image/jpeg' >> , >> encoding => 'base64' >> , >> disposition => sprintf('inline;filename="%s/%s";', $path[$#path - 1], >> $path[$#path]) >> , >> file => $imagepath.$path[$#path] >> , >> content_id => $k}) or die "Cannot send file as a separate part of >> mail message: $Mail::Sender::Error"; Thanks, Jeff, but the attachment isn't the problem. It seems to be the body. In my case both the attachment and the body are treated as attachments and the body is empty. How do you put the body into your emails? Thanks, Dennis
| Navigate in group perl.beginners at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |