Pretty useful stuff. Just used this to send out personalized invitation emails to all my friends. Email message attachments in Perl
Additional note: If you’re using a MS Exchange server like me, most likely, you will not be able to send out email outside your organization. To work around this, you need to use the sign in to your SMTP server using the auth method in Net::SMTP. Give your domain username (just the username) and the password in the call to auth.
I noticed that if I included the full email id in the call to auth, the call did not fail but only the emails within the org. domain went through. I haven’t really dug into this, cos I got it working with the username soon after.