second attempt at mailing
removed button functionality (sending on create)