This API is used for sending a simple email only to primary recipients (To). It can be used with or without attachments, depending on your requirements.
Learn More
API Endpoint
http:/msg.msgclub.net/rest/services/sendEmail/email?AUTH_KEY=your_auth_key
Headers
Content-Type: application/json
Request Body (Sample)
{
"routeId": 15,
"fromEmail": "abc@mail.com",
"fromName": "Sender Name",
"toEmailSet": [
{
"email": "toEmail1@xyz.com",
"personName": "User One"
}
],
"contentType": "html",
"subject": "Test Email",
"mailContent": "This is a test email."
}
Note: The payload is currently beautified for better readability. For API purposes, we require the payload in minified format.
Step-by-Step Guide
Step 1: Add API URL
Enter the API endpoint with your AUTH_KEY.
Step 2: Set Headers
Use application/json.
Step 3: Enter Sender Details
Provide sender email and name.
Step 4: Add Recipient
Add only toEmailSet (no CC/BCC required).
Step 5: Add Email Content
Include subject and message.
Step 6 (Optional): Add Attachment
- Set attachmentType to 1
- Add Base64 file data in attachments
Step 7: Send Request
Execute the API request.
Parameter Name with Description
| Parameter Name | Data Type | Description |
| AUTH_KEY * | Alphanumeric | Login Authentication Key(This key is unique for every user) |
| routeId * | Integer | Which route you want use for sending sms enter routeId for particular route.use given Id for route. 15- Transactional Email16- Promotional Email |
| contentType * | Text | Content type of email html for html content and text for text content. |
| mailContent * | Text | Email content that user want to sent in email. |
| subject * | Text | Email subject that user want to sent in email. |
| fromName * | Text | Name of sender. |
| fromEmail * | Text | Email id of sender like Sender Id |
| attachmentType * | Text | Current this parameter email have attachment. 0 have no attachment 1 have attechment. |
| toEmailSet * | Text | List of recipient of (To email). email: Email of recipient.personName: Name of recipient. |
| ccEmailSet | Text | List of cc recipient of (CCemail).email:Email of CC recipient.personName:Name of CC recipient. |
| bccEmailSet | Text | List of bcc recipient of (BCCemail).email:Email of BCC recipient.personName:Name of BCC recipient. |
| attachments | Text | List of attachments.fileType:Type of file.fileName:Name of File.fileData:File data converted in Base64 format. |
FAQs
1. When should I use this API?
Use this for simple, direct emails sent only to primary recipients (To).
2. Can I send attachments using this API?
Yes, attachments are optional. You can include them if needed.
3. Why are CC and BCC not included?
This API is designed for one-to-one or simple communication, where additional recipients are not required.
4. Is this suitable for OTP or verification emails?
Yes, this is ideal for OTPs, alerts, and transactional messages.
5. Can I send to multiple recipients in To?
Yes, you can include multiple entries in toEmailSet.
6. What content types are supported?
Both html and text are supported.
7. What is the simplest use case for this API?
Sending a quick notification or confirmation email to a single user.
