Email message attachments in Perl

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s