added mailgun support for sending emails