Email API Documentation
Welcome to the SMSMobileAPI email API documentation. This guide explains how to use our API to send and retrieve emails using HTTP requests.
SMSMobileAPI now allows you to connect any email account to our powerful API! Once the integration is set up via our intuitive dashboard (click here to log in or create an account), you’ll unlock seamless email sending and receiving through HTTP requests.Secure Email Without Passwords
Send emails without needing the client's password. Use a secure API key for safe and easy access.
Easy Email Integration
Integrate email sending with simple HTTP requests. No complex coding required.
Retrieve Emails Easily
Fetch received emails via HTTP and manage them directly in your project.
Send Email
Endpoint: POST https://api.smsmobileapi.com/sendemail/
Required Parameters:
Optional Parameters:
Example Request:
POST https://api.smsmobileapi.com/sendemail/?apikey=YOUR_API_KEY&apikeybox=YOUR_API_BOX&sender_name=John+Doe&sender_email=john@example.com&recipient_email=jane@example.com&mail_subject=Hello&mail_body=Hello+Jane%21
Did you know?
We also have a Python module that allows you to send your emails even more easily and securely! 🚀📧
https://pypi.org/project/smsmobileapi-send-email/
Retrieving Emails
Endpoint: GET https://api.smsmobileapi.com/getemail/
Required Parameters:
Example Request:
GET https://api.smsmobileapi.com/getemail/?apikey=YOUR_API_KEY&apikeybox=YOUR_API_BOX&mbox=INBOX
Response:
The API returns a JSON response containing email details, including subject, sender, recipient, body, timestamp, and attachments (if available).
{
"result": {
"error": "0",
"emaillist": [
{
"id": "12345",
"object": "Welcome",
"body": "Hello, welcome to our service!",
"email1": "sender@example.com",
"email2": "recipient@example.com",
"timestamp": "1672531200",
"date": "01/01/2023 - 12:00:00",
"size": "15KB",
"attachment": ""
}
]
}
}
Retrieve unsubscribed contacts
Endpoint: GET https://api.smsmobileapi.com/email/unsubscribed/
Required Parameters:
Example Request:
GET https://api.smsmobileapi.com/email/unsubscribed/?apikey=YOUR_API_KEY&apikeybox=YOUR_API_BOX
Note :
This API allows you to automatically retrieve the list of contacts who have received an email through your mailing and have clicked the unsubscribe link or requested to no longer receive communications.
With this API, you can:
- Identify contacts who asked to be removed from your mailing lists.
- Keep your databases up to date in real-time.
- Stay compliant with anti-spam regulations (such as GDPR or CAN-SPAM).
Contact Us
If you have any questions or need further assistance, feel free to contact us at api@smsmobileapi.com.