Your code looks pretty much like what the documentation of Email::Sender says to do. I am confused however about the line my $mime_entity = $message->cast('Email::MIME');, where did you get that from, and what happens when you remove that line? Also, note how the Email::MIME documentation starts with:
Wait! Before you read this, maybe you just need Email::Stuffer, which is a much easier-to-use tool for building simple email messages that might have attachments or both plain text and HTML.
Update: Also, have you made sure you have the newest versions of all of those modules?
In reply to Re: How to send email using Email::MIME & Email::Sender::Simple?
by haukex
in thread How to send email using Email::MIME & Email::Sender::Simple?
by Magkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |