Sender Addresses
Create and manage sender addresses for your verified domains.
Before you can send any email through eSMS Mail, you must create a sender address. This is the "from" address your recipients will see (e.g. hello@yourdomain.com, billing@yourdomain.com).
You cannot send emails without a sender address. The from field in every email must match a sender address you've created on a verified domain.
Create a sender address
Via dashboard
- Go to Sender Addresses in the sidebar
- Click Create
- Select a verified domain from the dropdown
- Enter the email address (e.g.
hello@yourdomain.com) - Enter a display name (e.g. "Your Company" — this is what recipients see next to the email)
Via API
curl -X POST https://send.esmsafrica.io/v1/sender-addresses/ \
-H "Authorization: Bearer esms_k_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"domain_id": "your_domain_id",
"email": "hello@yourdomain.com",
"display_name": "Your Company"
}'{
"id": "sa_123",
"email": "hello@yourdomain.com",
"display_name": "Your Company",
"domain_id": "your_domain_id",
"is_active": true,
"created_at": "2025-01-15T10:00:00Z"
}Requirements
- Domain must be verified — all 5 DNS records must be passing. You'll get a
400error if the domain is still pending. - Email must match the domain —
hello@yourdomain.comrequires theyourdomain.comdomain to be added and verified. You can't createhello@other.comon theyourdomain.comdomain. - Unique email addresses — each sender email must be unique. You can't create the same email twice.
Using sender addresses
When sending an email, the from field must use a sender address you've created:
{
"from": {
"email": "hello@yourdomain.com",
"name": "Your Company"
},
"to": [{"email": "user@example.com"}],
"subject": "Hello!",
"html": "<p>Sent from a verified sender address.</p>"
}If the from email doesn't match any active sender address on a verified domain, the email is rejected with a rejection_reason.
Multiple sender addresses
You can create multiple sender addresses on the same domain for different purposes:
| Address | Use case |
|---|---|
hello@yourdomain.com | General inquiries |
billing@yourdomain.com | Invoices and receipts |
noreply@yourdomain.com | Transactional notifications |
newsletter@yourdomain.com | Marketing emails |
List sender addresses
curl https://send.esmsafrica.io/v1/sender-addresses/ \
-H "Authorization: Bearer esms_k_your_api_key"Delete a sender address
curl -X DELETE https://send.esmsafrica.io/v1/sender-addresses/{address_id} \
-H "Authorization: Bearer esms_k_your_api_key"Deleting a sender address means you can no longer send emails from that address. Existing sent emails are not affected.
Limits
The number of sender addresses depends on your plan. Check your current usage on the Billing page.