Mailer script cleanup

Cleanup bugs and standardize html and text formatting accross the email
send scripts.