Some hopefully correct changes to use mailgun for outbound delivery.