[Mimedefang] MIME::Entity->attach encoding of an already encoded body/bodyhandle

David F. Skoll dfs at roaringpenguin.com
Thu Aug 4 11:23:07 EDT 2011


On Thu, 04 Aug 2011 16:20:48 +0200
"Rolf E. Sonneveld" <R.E.Sonneveld at sonnection.nl> wrote:

> $newmsg->attach(Data => $bodypart,
>     Encoding => "base64");

Don't use attach.  Use add_part instead (see the MIME::Entity man page)
You'll need to ensure that $newmsg is a multipart entity which you can
force with the make_multipart method.

Regards,

David.



More information about the MIMEDefang mailing list