Getting the mailgun delivery method to work with both devise and custom mailers

Getting the mailgun delivery method to work with both devise and custom mailers