Emailing with PHP

While adding some more features to the recent Intranet Portal, one thing that came up was to have an email sent with a copy of the order for a quick check. I originally did this sending it as plain text however it was a little difficult to read. I wanted to set it up to have both text and HTML emails so it was nicely formatted for reading on the desktop but still useable when viewing on a mobile phone.

Enter PHPMailer. This is a great PHP class that makes the whole process of dealing with MIME headers and all the other crap painless. Using PHPMailer I was able to get the email sent with both a text and HTML version (including inline images) and it’s working great.

Advertisements
Explore posts in the same categories: PHP, Tech, WebSites

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


%d bloggers like this: