Skip to content

Email Settings

PentestPad uses email for password resets, user invitations, and notifications. You must configure a mail provider before these features work.

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=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=noreply@yourdomain.com
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

If you prefer using the Mailgun API instead of SMTP:

MAIL_MAILER=mailgun
MAILGUN_DOMAIN=mg.yourdomain.com
MAILGUN_SECRET=your_mailgun_api_key
MAIL_FROM_ADDRESS=noreply@yourdomain.com

Your Mailgun API key can be found in the Mailgun dashboard under API Keys.