SMTP configuration examples for PHP, Python and Symfony
Connect popular mail libraries to SMTPBox with configuration examples and links to Laravel and Nodemailer setup guides.
04 / EXAMPLES
Configure your stack
Select a framework for a copy-ready starting point. Substitute the credential values shown in your dashboard.
.env
MAIL_MAILER=smtp
MAIL_HOST=smtp.smtpbox.dev
MAIL_PORT=587
MAIL_USERNAME=sb_your_inbox_username
MAIL_PASSWORD=your_one_time_password
MAIL_ENCRYPTION=tlsFor complete walkthroughs, see Laravel setup and Nodemailer setup.
Updated