I came across this
http://sendible.com/api which should in theory be what you need, they have a free plan but it embeds advertising in the email, so it might not be ideal from that sense, you could always host the mail sending script on another server, but if you were to do that it would probably suffice to write it in php