converted mailer to use mailgun api