Email Settings
PentestPad uses email for password resets, user invitations, and notifications. You must configure a mail provider before these features work.
Choosing a Mailer
Section titled “Choosing a Mailer”Set MAIL_MAILER in your .env file to one of the supported drivers:
| Value | Description |
|---|---|
smtp | Any SMTP-compatible provider (recommended) |
mailgun | Mailgun HTTP API |
Suitable for most providers including Gmail, SendGrid, Postmark, Mailtrap, and custom mail servers.
MAIL_MAILER=smtpMAIL_HOST=smtp.example.comMAIL_PORT=587MAIL_USERNAME=your_usernameMAIL_PASSWORD=your_passwordMAIL_ENCRYPTION=tlsMAIL_FROM_ADDRESS=noreply@yourdomain.comCommon provider settings
Section titled “Common provider settings”| Provider | Host | Port | Encryption |
|---|---|---|---|
| Gmail | smtp.gmail.com | 587 | tls |
| SendGrid | smtp.sendgrid.net | 587 | tls |
| Postmark | smtp.postmarkapp.com | 587 | tls |
| Mailtrap (testing) | sandbox.smtp.mailtrap.io | 2525 | null |
Mailgun
Section titled “Mailgun”If you prefer using the Mailgun API instead of SMTP:
MAIL_MAILER=mailgunMAILGUN_DOMAIN=mg.yourdomain.comMAILGUN_SECRET=your_mailgun_api_keyMAIL_FROM_ADDRESS=noreply@yourdomain.comYour Mailgun API key can be found in the Mailgun dashboard under API Keys.