---
title: "Free SMTP Server To Power Your Apps"
description: "AhaSend's free SMTP servers for sending transactional emails deliver your emails to the inbox at lightning speeds. Send up to 1,000 free emails per month with high quality IPs and perfect deliverability."
url: https://ahasend.com/free-smtp-server-relay
markdown_url: https://ahasend.com/free-smtp-server-relay.md
lang: en
type: page_builder
published: 2025-12-16
updated: 2026-09-02
---

# Free SMTP Server To Power Your Apps

Use AhaSend's fast, secure SMTP to deliver your transactional emails. Start free with **1000 monthly emails** and scale confidently.

- [Start Now For Free](https://dash.ahasend.com/user/register)
- [Pricing](https://ahasend.com/pricing)

Free for 1000 emails • **99.9% uptime** • Global delivery

## Send Emails Using SMTP From Anywhere

SMTP is the most widely supported protocol for sending emails with libraries available in almost any language, and native support in any application that needs to send emails. Start sending in emails minutes!

### CLI

#### swaks

```bash
swaks \
        --from sender@example.com \
        --to recipient@example.com \
        --server send.ahasend.com \
        --port 587 \
        --auth plain \
        --tls \
        --auth-user 'YOUR_SMTP_USERNAME' \
        --auth-password 'YOUR_SMTP_PASSWORD' \
        --header 'Subject: Test email' \
        --body "This is a test email."
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/cli) or [contact our support team](https://ahasend.com/contact)

### Node.js

Install dependencies:

```bash
npm i nodemailer
```

#### JavaScript

```javascript
const nodemailer = require('nodemailer');
// Create a transporter object using the SMTP transport
let transporter = nodemailer.createTransport({
    host: 'send.ahasend.com',
    port: 587,
    requireTLS: true, //Force TLS
    auth: {
        user: 'YOUR_SMTP_USERNAME', // SMTP username
        pass: 'YOUR_SMTP_PASSWORD', // SMTP password
    },
});
// Email options
let mailOptions = {
    from: '"Your Name" <sender@example.com>', // sender address
    to: 'recipient@example.com', // list of receivers
    subject: 'Hello ✔', // Subject line
    text: 'Hello world?', // plain text body
    html: '<b>Hello world?</b>', // html body
};
// Send email
transporter.sendMail(mailOptions, (error, info) => {
    if (error) {
        return console.log(error);
    }
    console.log('Message sent: %s', info.messageId);
});
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/nodejs) or [contact our support team](https://ahasend.com/contact)

### Go

Install dependencies:

```bash
go get gopkg.in/gomail.v2
```

#### Go

```go
email := gomail.NewMessage()
email.SetAddressHeader("From", "info@example.com", "My awesome startup")
email.SetAddressHeader("To", "someone@example.com", "Someone")
email.SetHeader("Subject", "Sample email")
email.SetBody("text/plain", "Plain text body")
email.SetBody("text/html", "<p>This is the <b>HTML</b> body</p>")
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/golang) or [contact our support team](https://ahasend.com/contact)

### Ruby

#### Ruby

```ruby
require 'net/smtp'

message = <<~MESSAGE_END
    From: Your Name
    To: Recipient Name
    Subject: SMTP Test Email
    Date: #{Time.now.rfc2822}

    This is a test email sent using net/smtp in Ruby.
MESSAGE_END

smtp_settings = {
    address: 'send.ahasend.com',
    port: 587,
    domain: 'domain.com', # your domain
    user_name: 'YOUR_SMTP_USERNAME',
    password: 'YOUR_SMTP_PASSWORD',
    authentication: 'plain',
    enable_starttls_auto: true
}

Net::SMTP.start(
    smtp_settings[:address],
    smtp_settings[:port],
    smtp_settings[:domain],
    smtp_settings[:user_name],
    smtp_settings[:password],
    smtp_settings[:authentication]
) do |smtp|
    smtp.enable_starttls
    smtp.send_message message, 'sender@example.com', 'recipient@example.com'
end
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/ruby) or [contact our support team](https://ahasend.com/contact)

### Python

#### Python

```python
import smtplib
from email.message import EmailMessage
def send_plain_text_email():
    smtp_server = "send.ahasend.com"
    smtp_port = 587
    smtp_username = "YOUR_SMTP_USERNAME"
    smtp_password = "YOUR_SMTP_PASSWORD"
    from_addr = "sender@example.com"
    to_addr = "recipient@example.com"
    subject = "Test Email"
    body = "Hello, this is a test email sent from Python."
    # Create the email message
    msg = EmailMessage()
    msg.set_content(body)
    msg['Subject'] = subject
    msg['From'] = from_addr
    msg['To'] = to_addr
    # Connect to the SMTP server
    server = smtplib.SMTP(smtp_server, smtp_port)
    server.starttls()  # Secure the connection
    server.login(smtp_username, smtp_password)
    server.send_message(msg)
    server.quit()
send_plain_text_email()
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/python) or [contact our support team](https://ahasend.com/contact)

### PHP

#### Symfony

```php
use Symfony\Component\Mailer\Transport;
use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mime\Email;

require 'vendor/autoload.php';

$transport = Transport::fromDsn(
  'smtp://YOUR_SMTP_USERNAME:YOUR_SMTP_PASSWORD@send.ahasend.com:587'
);
$mailer = new Mailer($transport);

$email = (new Email())
    ->from('sender@example.com')
    ->to('recipient@example.com')
    ->subject('Time for Symfony Mailer!')
    ->text('Sending emails is fun!')
    ->html('<p>See Twig integration for better HTML integration!</p>');

$attachment = Attachment::fromPath('/path/to/file.pdf');
$email->attach($attachment);

$mailer->send($email);

echo 'Message has been sent';
```

Need help getting started? [Check out our documentation](https://ahasend.com/docs/smtp/php) or [contact our support team](https://ahasend.com/contact)

---

### Fast and reliable email delivery

When it comes to transactional emails like OTPs and Confirmation emails, delivery speed is everything. AhaSend is built for transactional emails and fast delivery.

- **Deliver your emails at lightning speeds:** we have a track record of delivering emails to Gmail in under 1 seconds, and to other providers in under 5 seconds.
- **Improve your inbox placement:** Sending transactional emails only improves deliverability, and we only send transactional emails. Get your emails to the inbox where they belong!
- **Automated blocklist management:** AhaSend keeps your domain reputation high and improves your email deliverability by automatically managing bounces and creating blocklists on your behalf.

### Send from ports that work for you

ISPs and networks often place limitations on standard SMTP relay ports. AhaSend supports a variety of SMTP ports to give you more flexibility when it comes to sending with SMTP. We require STARTTLS encryption on all emails to improve security. You can send from any of the following ports

- **25**
- **587**
- **2525**

### Easily process inbound emails

AhaSend simplifies integrating email data into your systems by allowing you to route inbound message to a HTTP endpoint and receive the message data in a POST request instead of having to deal with inbound SMTP sessions directly.

- **Get structured JSON or raw email data**
- **Automatically remove signatures and quoted replies**
- **Get latest reply as a separate JSON property**

### Debug with realtime logs and search

Debugging SMTP issues can be hard. AhaSend simplifies troubleshooting email delivery issues by providing

- **Raw, unaltered SMTP delivery logs**
- **Fully searchable message activity** by FROM, TO, delivery status, and more
- **Providing real-time webhook events** for message delivery events

_There's more_

## Extend Your Reach With Advanced Features

Dive deeper into our suite of tools designed to optimize your email integrations and enhance your application's capabilities.

- [Get Started For Free](https://dash.ahasend.com/user/register)

### Engagement Tracking

Gain insight into your audience with detailed open and click tracking for every email.

[Learn more](https://ahasend.com/docs/tracking/open-tracking)

### Email API

SMTP is good, but HTTP APIs are more flexible and faster for large senders.

[Learn more](https://ahasend.com/free-email-api)

### Message Retention Policies

Customize retention policies for your message data and metadata.

[Learn more](https://ahasend.com/docs/retention)

### Email Archiving

Archive your emails on any S3-compatible block storage service for compliance requirements.

[Learn more](https://ahasend.com/docs/retention/s3)

### Free Dedicated IPs

Large senders sending over 300k emails per month get dedicated IPs - free of charge!

[Learn more](https://ahasend.com/docs/scale/dedicated-ips)

### Support by engineers

Get support from real engineers and deliverability experts.

[Learn more](https://ahasend.com/contact)

### DKIM rotation

We automatically rotate DKIM keys, enhancing security.

[Learn more](https://ahasend.com/docs/retention/s3)

### Management API

Manage domains, webhooks, supressions, routes, statistics, accounts and API keys

[Learn more](https://ahasend.com/docs/api-reference)

## Join Thousands Of Developers Using AhaSend

Start sending emails with our reliable SMTP server. No complex setup required, just plug and play.

- [Get Started For Free](https://dash.ahasend.com/user/register)
