Fixed bugs in interface with mailgun.