Can I send email over SMTP from Render?
Free web services on Render can't send outbound SMTP traffic on ports 25, 465 or 587. Render blocks port 25 for all services. Render's changelog states that you can upgrade a free web service to any paid instance type to keep sending traffic to an SMTP port. On a paid service, you can use ports 465 and 587 but not port 25.
Documentation checked: Render between 2026-10-16 and 2026-11-25, docs.djangoproject.com on 2026-11-25.
Outbound SMTP port rules by plan
Port | Free web service | Paid service |
|---|---|---|
25 | Blocked | Blocked |
465 | Blocked | Allowed |
587 | Blocked | Allowed |
Render blocks outbound traffic on port 25 for all services, including paid ones. Render's Free web services documentation states that most of its listed limitations are specific to web services on the Free compute plan.
How the block appears in logs
On a Free web service, a connection on a blocked port usually times out instead of failing right away. The error can look like a credentials problem or a provider outage. The log shapes below are generic illustrations.
A Nodemailer timeout typically looks like this:
Django's SMTP backend surfaces the timeout from Python's smtplib connection:
The exact exception depends on your Python version and the EMAIL_TIMEOUT setting. For example, older Python versions report socket.timeout.
If you see either error on a Free web service that connects on port 25, 465 or 587, the port block is the likely cause.
Send over SMTP from a paid service
On a paid service, you can keep your existing Nodemailer or Django SMTP code. Change the port to 465 or 587 and set the TLS option that matches that port. If the TLS setting doesn't match the port, the connection fails.
- Port
465uses implicit TLS. In Nodemailer, setsecure: true, as described in the Nodemailer SMTP documentation. In Django, setEMAIL_USE_SSL = True. - Port
587uses STARTTLS. In Nodemailer, leavesecure: falseso STARTTLS upgrades the connection, as described in the Nodemailer SMTP documentation. In Django, setEMAIL_USE_TLS = True.
Confirm the port and TLS mode in your email provider's documentation.
Render's changelog states that to continue sending traffic to an SMTP port, you can upgrade your free web service to any paid instance type.
Port 25 is blocked on all Render services, regardless of plan. Get the SMTP host, credentials and supported ports from your email provider's official documentation.
Send through an email provider's HTTP API on any plan
Email provider HTTP APIs send requests over HTTPS on port 443. That port isn't one of the SMTP ports Render blocks, so you can use this option from a Free web service too.
This minimal Node example sends one message through SendGrid's v3 Mail Send endpoint, POST https://api.sendgrid.com/v3/mail/send. It uses the bearer-token auth and JSON request body described in the SendGrid Mail Send API reference. Adapt the addresses and content before you run it.
Choosing between the two
SMTP on port 465 or 587 requires a paid plan, because Free web services can't send outbound traffic on those ports. Choose an HTTP API if you're on a Free web service or your service doesn't need SMTP.