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

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to