Mailgun Mailer

Mailgun Mailer Driver Settings

Mailgun is a transactional email service used by developers and information technology professionals to send, receive, and track emails using its powerful Application Program Interface (API).

Mailgun requires that your email server be registered with their service. Therefore, prior to configuring your email server to use Mailgun, ensure that have registered with their service and you have received the Mailgun domain name and secret for your email server.

Configure Mailgun Mailer Driver Settings

Permissions

Your user account or group membership must have the "Settings: Update Settings" permission to edit email server settings unless your user account has the Make this user a Super Admin setting selected.

See the Settings permissions or ask your Administrator for assistance.

To configure a Mailgun email server, the following information is needed:

  • Mailgun secret

  • Mailgun domain

To generate or locate this information, refer to Where Can I Find My API Key and SMTP Credentials?

Configure the following Mailgun settings as necessary:

  1. Create a new email server configuration. The settings for the new email server display. By default smtp is selected as the mailer driver.

  2. Click the Edit icon for the Mailer driver setting. The Mailer driver screen displays.

  3. Select the mailgun option, and then click Save. The settings for the Mailgun email server display.

  4. Click the Edit icon for the Mailgun Domain setting. The Mailgun Domain screen displays.

  5. Enter your Mailgun domain, and then click Save.

  6. Click the Edit icon for the Mailgun Secret setting. The Mailgun Secret screen displays.

  7. Enter your Mailgun secret, and then click Save.

  8. Click the Edit icon for the Sender Email setting. The Sender Email screen displays.

  9. Enter the email address that this server uses to send emails, and then click Save.

  10. Click the Edit icon for the Sender Name setting. The Sender Name screen displays.

  11. Enter the person or company name that sends the email, and then click Save.

  12. Optionally, send a test email to ensure that the email server configuration functions correctly.

Example Mailgun Email Server Configuration

Consider the following example for a Mailgun mail server configuration:

  • Mailer driver: mailgun

  • Mailgun Domain: BigCompany.mailgun.org

  • Mailgun Secret : •••••••••••••••••••••

  • Sender Email: LouisCanera@BigCompany.com

  • Sender Name: LouisCanera