Here's a class library that will help:
 
 
 

Published with blogmailr