All guides

Sending

Send an email

The shape of a simple, server-side email request.

Preview guide. Confirm API behavior and connection details against the live service before production use.

Make a sending request

Send a JSON request from your server with an authenticated sender, a recipient, a subject, and email content. The examples below show a conceptual API shape; supported fields and endpoints need verification against the live service.

fetch('https://api.sendlom.com/emails', {  method: 'POST',  headers: {    Authorization: 'Bearer YOUR_API_KEY',    'Content-Type': 'application/json'  },  body: JSON.stringify({    from: 'hello@example.com',    to: 'alex@example.com',    subject: 'Welcome aboard'  })});
DeliveredExample response

Understand the example fields

The from field identifies the sender, to identifies the recipient, and subject is the message’s subject line. Supply text or HTML content using the fields supported by your sending API.

Keep the response

Save the message ID returned by the service. Use it as the reference for later delivery events or support investigations. Do not treat acceptance by the API as confirmation that the recipient server accepted the message.

Handle a rejected request

Check your authentication, sending domain, recipient, and request fields before retrying. Avoid blindly retrying a request whose final result is unknown, because a duplicate message may result.

Keep buildingConnect with SMTP

A little less setup

Your first send.

See how a message moves from request to delivery.

Interactive demo. No account is created and no email is sent.
Email preview

Welcome aboard.

Good things start with a hello.
You’re all set to start building.

Explore the integration guide