There are 2 main services that provide email testing. Litmus and Email on Acid.
Email is very hard to accurately simulate across email clients, and I wouldn't suggest trying to do it outside of a service that has virtual machines running the tests for you.
Take a look at the API's (Litmus and EOA) of each of these 2 services. Email on Acid seems most cost effective option. Using the API of one of these two services is the only (accurate) option I would suggest.