By Chris Nehren (apeiron) from Dahut.pm, Philadelphia.pm, NY.pm
Date: Saturday, 15 January 2011 14:30
Duration: 40 minutes
Target audience: Any
Tags: alt.mime lite.die.die.die mime sending.email
Have you ever wanted to send complex email messages from Perl? Were you successful? Did you get lost trying to navigate the forest of Email:: and Mail:: modules, not sure whether you wanted Mail::Box or Email::Stuff or Mail::Sendmail? This talk is for you. In this talk, I'll cover 90% of what you need to know about sending email from perl. I spent about a year working on email code between two jobs, one of those being Pobox (hi, rjbs!). I learned a lot about how email works and doesn't work in Perl, and what the best practices are. It's not as hard as you think, and it's getting simpler all the time. This talk covers the story of emailing a newsletter. It starts simple, with a plaintext email going to a limited number of recipients, and scales up to a multipart MIME message with templated HTML and plaintext parts (with verification that the template values validate according to rules you set), image attachments, SMTP TLS authentication, etc. This talk starts at the beginning and works its way up to the state of the art in sending enterprise-quality email with Perl. Most people who haven't worked heavily with email in Perl should learn at least something.