refactor mailgun sender