SMS API for SaaS: Streamline Transactional Messaging - MailerSend

Simple SMS API for SaaS

Add reliable SMS delivery to your applications to programmatically send text notifications, OTPs, and 2FA messages to users.

Try for free

Grow your SaaS with SMS

Increase engagement

Keep customers happy and reduce churn with targeted SMS that build relationships.

Improve security

Show users you value their security with 2FA and one-time passwords.

Streamline support

Let customers get help when they need it with inbound SMS.

Advanced SMS API for apps

Get a headstart with our dev-friendly SMS API, official SDKs, and comprehensive documentation. Available in 7 programming languages so you can work with what suits you best.

Read our API docs

cURL Node.js PHP Python Ruby Go Java

curl -X POST \
https://api.mailersend.com/v1/sms \
-H 'Content-Type: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {place your token here without brackets}' \
-d '{
    "from": "+18332552485",
    "to": [\
        "+12345678900",\
    ],
    "text": "This is just a friendly hello"
}'
"use strict";
require('dotenv').config()

const { MailerSend, SMSParams } = require("mailersend");

const mailersend = new MailerSend({
    apiKey: process.env.API_KEY,
});

const recipients = [\
    "+18332647501"\
];

const smsParams = new SMSParams()
    .setFrom("+18332647501")
    .setRecipients(recipients)
    .setText("This is the text content");

mailersend.sendSms(smsParams);
use MailerSend\MailerSend;
use MailerSend\Helpers\Builder\SmsParams;

$mailersend = new MailerSend(['api_key' => 'key']);

$smsParams = (new SmsParams())
    ->setFrom('+12065550101')
    ->setTo(['+12065550102'])
    ->addRecipient('+12065550103')
    ->setText('Text');

$sms = $mailersend->sms->send($smsParams);
from mailersend import MailerSendClient, SmsSendingBuilder

ms = MailerSendClient()

# Simple SMS
request = (SmsSendingBuilder()
          .from_number("sms-number")
          .to(["+1234567890", "+1234567891"])
          .text("Hello from MailerSend SMS!")
          .build())

response = ms.sms_sending.send(request)

# SMS with personalization
request = (SmsSendingBuilder()
          .from_number("sms-number")
          .to(["+1234567890", "+1234567891"])
          .text("Hello {{name}}, your order {{order_id}} is ready!")
          .personalization([\
              {\
                  "phone_number": "+1234567890",\
                  "data": {"name": "John", "order_id": "12345"}\
              },\
              {\
                  "phone_number": "+1234567891",\
                  "data": {"name": "Jane", "order_id": "12346"}\
              }\
          ])
          .build())

response = ms.sms_sending.send(request)
require "mailersend-ruby"

# Intialize the SMS class
ms_sms = Mailersend::SMS.new

# Add parameters
ms_sms.add_from('your-number')
ms_sms.add_to('client-number')
ms_sms.add_text('This is the message content')
personalization = {
  phone_number: 'client-number',
  data: {
    test: 'Test Value'
  }
}
ms_sms.add_personalization(personalization)

# Send the SMS
ms_sms.send
package main

import (
    "context"
    "os"
    "fmt"
    "time"

"github.com/mailersend/mailersend-go"
)

func main() {
    // Create an instance of the mailersend client
    ms := mailersend.NewMailersend(os.Getenv("MAILERSEND_API_KEY"))

ctx := context.Background()
    ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
    defer cancel()

message := ms.Sms.NewMessage()
    message.SetFrom("your-number")
    message.SetTo([]string{"client-number"})
    message.SetText("This is the message content {{ var }}")

personalization := []mailersend.SmsPersonalization{
        {
            PhoneNumber: "client-number",
            Data: map[string]interface{}{
                "var": "foo",
            },
        },
    }

message.SetPersonalization(personalization)

res, _ := ms.Sms.Send(context.TODO(), message)
    fmt.Printf(res.Header.Get("X-SMS-Message-Id"))
}
import com.mailersend.sdk.MailerSend;
import com.mailersend.sdk.exceptions.MailerSendException;

public void sendSms() {

MailerSend ms = new MailerSend();
    ms.setToken("mailersend token");

try {

String messageId = ms.sms().builder().from("from phone number")
        .addRecipient("to phone number")
        .text("test sms {{name}}")
        .addPersonalization("to phone number", "name", "name personalization")
        .send();

System.out.println(messageId);

} catch (MailerSendException e) {

e.printStackTrace();
    }
}

Inbound message processing

Facilitate two-way messaging for users and parse inbound SMS content to your apps and CRM. Add app functionality such as the ability to add list items or create support tickets when a user sends a text.

Quick & easy bulk SMS sending

Conveniently send bulk SMS alerts to an entire list of recipients. Send emergency notifications, weather alerts, important business information, client-wide security alerts, and more.

No-code integrations for SMS

Easily connect other web apps with MailerSend so they seamlessly work together to share information, automate workflows and enhance your customer experience.

Zapier](/content/integrations/mailersend-zapier-integration/index.html) Make](/content/integrations/mailersend-make-integration/index.html) Airtable](/content/integrations/airtable-mailersend-integration/index.html) All integrations

Real-time webhook notifications

Create custom workflows based on users’ actions with the Sent, Delivered, and Failed webhook events as triggers. Plus, integrate the real-time activity into your custom dashboards and apps.

Toll-free numbers for high-volume sending

Toll-free numbers have a high throughput that can handle sending thousands of SMS. You can reliably process large volumes of SaaS SMS notifications without worry.

Secure and TCPA-compliant

MailerSend is a TCPA-compliant SMS delivery service that implements the latest security and encryption protocols as well as data protection regulations. You can be confident your customers’ data will always be protected.

Award-winning technical support

Get 24/7 access to a friendly, knowledgeable customer support team. Whether you need help getting started or guidance on more technical aspects, a support team member will be happy to help.

93%

satisfaction rate

100%

response rate

24/7

support hours

SMS activity tracking

Monitor all sent messages and their statuses in real-time. Gain insights about SMS delivery to troubleshoot, learn about recipient activity, and make adjustments to SMS notifications.

Personalization options

Easily personalize bulk SMS messages for individual users with personalization variables. Include names, account information, usage details, and more in your texts.

Multi-language support

Provide SMS services for users in any language with multilingual character encoding. Tailor your SaaS messaging for each user’s language preferences to increase customer engagement.

Explore the possibilities of SMS for SaaS

Scalable, secure SMS delivery for SaaS

Four simple plans, no hidden costs. Start with 500 emails/month for free and upgrade to get more volume or features.

How many emails do you plan to send?

5K

Pay monthly

Pay yearly

Save 10%

USDEURGBP

Pricing in Euros and British Pounds is for informational purposes only. All billing invoices will be charged in US dollars.

Best value

Professional

For agencies and white-label resellers sending at scale

$99.00/month $1,188.00 billed yearly €90.47/month €1,085.60 billed yearly £75.68/month £908.12 billed yearly $110.00/month€100.52/month£84.09/month

50,000emails /month

150SMS /month

400

email verification credits

Extra usage

$1.30€1.19£0.99

/1,000 emails

$1.40€1.28£1.07/100 SMS

Try for free

Best value

Starter

For growing startups and small businesses

$31.50/month $378.00 billed yearly €28.78/month €345.42 billed yearly £24.08/month £288.95 billed yearly $35.00/month€31.98/month£26.75/month

50,000emails /month

100SMS /month

100

email verification credits

Extra usage

$1.30€1.19£0.99

/1,000 emails

$1.40€1.28£1.07 /100 SMS

Try for free

Best value

Hobby

For personal projects and side hustles

$6.30

/month

$75.60 billed yearly €5.76

/month

€69.08 billed yearly £4.82

/month

£57.79 billed yearly $7.00

/month

€6.40

/month

£5.35

/month

5,000

emails /month

100

email verification credits

Extra usage

$1.50€1.37£1.15

/1,000 emails

Try for free

Free

For occasional email testing and sending

Get started for free — includes:

Try for free

* Learn more about plan limits.   |   Taxes may apply, learn more.

Not sure yet?

Compare all features

What our customers think

MailerSend integrates quickly into your tech stack, scales with your sendings, and ensures that your emails get delivered.

High Performer\ Small Business\ \ Spring 2025 High\ \ Performer\ Spring 2025 High Performer\ Europe\ \ Winter 2025

Very easy to set up without requiring support documents. Integrating with Joomla CMS was flawless and test emails were being sent within a few minutes of account creation. No reason to use Google’s standard workspace smtp servers.

G2 ReviewerComputer Software

The ease of integration is super. I write predominantly in Golang for back-end services, and I had MailerSend integrated in about sixty seconds flat. I've moved to MailerSend for all transactional email services.

David G.Developer

Amazing product and support!

MailerSend is extremely easy to use and super fast to set up. I was able to send the first email via the API in minutes. With the predefined templates and drag & drop editor you're able to get started really quickly.

Tobias R.

Owner

Frequently Asked Questions

How to send SMS from a web application or website?

Once you’ve purchased a phone number, you can easily start sending SMS messages with the MailerSend API. This involves creating an API token and making a request. You can learn more about how to start sending SMS in our guide. Also, check out this guide on how to send SMS with Python.

Can MailerSend's SMS API handle high volumes of messages for large SaaS companies?

Yes, MailerSend’s sending infrastructure is built to handle large volumes of SMS messages for SaaS businesses. What’s more, we use toll-free phone numbers which are also ideal for sending SMS at scale.

Are there any limitations on the geographic reach of MailerSend's SMS services?

MailerSend’s SMS service is currently available for the USA and Canada. More availability is coming soon.

Is there a trial period for MailerSend's SMS API?

Starter and Professional plan users have access to a free trial phone number that they can use for testing purposes.

How easy is it to integrate MailerSend's SMS API with existing SaaS applications?

With MailerSend’s powerful SMS API, SDKs, documentation and no-code integrations, it’s very easy for developers to integrate SMS sending into their existing SaaS applications. View the API and developers documentation for more.

How does MailerSend ensure compliance and data privacy in SMS communications?

MailerSend is TCPA compliant and also follows the required regulations for data privacy. The messaging itself is protected by the latest security and encryption protocols.

What support options are available for MailerSend's SMS API users?

MailerSend prides itself on its award-winning support which is available 24/7 via email and live chat. Our customer support team can provide support for implementation, features and technical issues.

Additional resources

Secure your app's SMS communication\ \ Learn more](/content/help/sms-verification-and-limits/index.html) SMS: How to handle opt-in and opt-out\ \ Learn more](/content/help/sms-how-to-handle-opt-in-and-opt-out/index.html) How to start sending SMS\ \ Learn more](/content/help/how-to-start-sending-sms/index.html) How to purchase an SMS phone number\ \ Learn more](/content/help/how-to-purchase-an-sms-phone-number/index.html) Sending SMS\ \ Learn more](https://developers.mailersend.com/api/v1/sms) How to remain SMS-compliant\ \ Learn more](/content/blog/sms-compliance/index.html)

Try MailerSend for free

Sign up now to experience all of the features that make MailerSend a great SaaS messaging solution. Get 500 emails/month free.

Try for free