Documentation

Learn how to use ProxyMail with Nodemailer

Overview

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.

How It Works

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

Integration Steps

1. Install Nodemailer

Run this command in your project directory:

npm install nodemailer

2. Default Nodemailer Configuration

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",
  },
});

3. ProxyMail Configuration

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",
  },
});

Key Changes:

  • Change host to our proxy domain
  • Update port to 4065
  • Keep your original SMTP credentials

Testing Your Integration

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!",
});

Troubleshooting

Connection Issues

If you can't connect, verify your firewall allows outbound connections to port 4065.

Authentication Errors

Double-check your SMTP credentials and ensure they're correctly configured.

Need help? Contact our support team at support@proxymailer.online