Setup & Configuration
Get Email Sandbox configured and integrated with your application
Last updated
Was this helpful?
Was this helpful?
// Example Node.js configuration
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'sandbox.smtp.mailtrap.io',
port: 2525,
auth: {
user: 'your_username',
pass: 'your_password'
}
});await transporter.sendMail({
from: 'test@example.com',
to: 'user@example.com',
subject: 'Test Email',
text: 'This is a test email'
});