Learn how to use ProxyMail with Nodemailer
ProxyMail helps you bypass DigitalOcean's SMTP port restrictions by routing your email traffic through our secure proxy servers. This guide will show you how to integrate ProxyMail with your Nodemailer configuration.
DigitalOcean has restricted outbound SMTP ports, but our proxy service provides a solution.
Your application connects to our proxy server on port 4065
Our proxy forwards your requests to the actual SMTP server
Emails are delivered successfully through the SMTP server
Run this command in your project directory:
npm install nodemailer
This is how a typical Nodemailer configuration looks:
Default configuration:
const transporter = nodemailer.createTransport({ host: "smtp.google.com", port: 465, secure: true, auth: { user: "Your SMTP Username", pass: "Your SMTP Password", }, });
Update your configuration to use ProxyMail:
Modified configuration with ProxyMail:
const transporter = nodemailer.createTransport({ host: "send.proxymailer.online", port: 4065, secure: true, auth: { user: "Your SMTP Username", pass: "Your SMTP Password", }, });
To test your integration, send a test email:
// Send test email await transporter.sendMail({ from: 'Your Name<your@email.com>', to: "recipient@email.com", subject: "Test Email", text: "If you receive this, the proxy is working!", });
If you can't connect, verify your firewall allows outbound connections to port 4065.
Double-check your SMTP credentials and ensure they're correctly configured.
Need help? Contact our support team at support@proxymailer.online