I'm looking for a simple (OO?) Approach to creating and sending email.
Sort of
$e = Email->new(to => "test <test@test.com>", from => "from <from@from.com>");
$e->plain_text($plain_version);
$e->html($html_version);
$e->attach_file($some_file_object);
I found Email :: MIME :: CreateHTML that looks great in almost every way, except that it does not support file attachments.
In addition, I am thinking of writing these letters to the database and sending a cronjob later. This means that I will need $e->as_text()sub to return all email, including attachments, as the source text that I could add to db. And so I would need a way to send raw emails - what would be a good way to achieve this?
Many thanks
aidan source
share