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:

ValueDescription
smtpAny SMTP-compatible provider (recommended)
mailgunMailgun 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
ProviderHostPortEncryption
Gmailsmtp.gmail.com587tls
SendGridsmtp.sendgrid.net587tls
Postmarksmtp.postmarkapp.com587tls
Mailtrap (testing)sandbox.smtp.mailtrap.io2525null

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.