http://www.perlmonks.org?node_id=1086018


in reply to Sending email with attachments using Email::Mime

Hi,

one of your problems is the line

my $response = sendmail($email);

This doesn't fit to the API of the function sendmail. Have a look at the docs of Mail::Sendmail. What you put in is a Email::MIME-object which doesn't work this way.

Regards
McA