This API is used when you want to send emails to multiple recipients, including CC and BCC, but without attaching any files. It is ideal for alerts, updates, or general communication.
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"
}
],
"ccEmailSet": [
{
"email": "ccEmail1@xyz.com",
"personName": "CC User"
}
],
"bccEmailSet": [
{
"email": "bccEmail1@xyz.com",
"personName": "BCC User"
}
],
"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 as the content type.
Step 3: Enter Sender Details
Add the sender’s email ID and name.
Step 4: Add Recipients
Include:
- toEmailSet for main recipients
- ccEmailSet for CC
- bccEmailSet for BCC
Step 5: Add Email Content
Fill in subject and message content.
Step 6: Skip Attachment Section
Do not include attachment-related fields.
Step 7: Send Request
Execute the POST 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 when you want to send emails to multiple recipients (To, CC, BCC) without attaching any files.
2. Can I add attachments later?
No, this specific structure is meant for emails without attachments. Use the attachment API format if needed.
3. Are CC and BCC mandatory?
No, both are optional. You can include them based on your requirement.
4. What is the benefit of not using attachments?
It improves performance and reduces processing time, especially for bulk emails.
5. Can I send bulk emails using this API?
Yes, you can add multiple recipients in toEmailSet, ccEmailSet, and bccEmailSet.
6. What happens if I include attachment fields accidentally?
It may cause validation errors or unexpected behavior. It is best to avoid attachment-related parameters.
7. Is HTML content supported?
Yes, you can use both html and text formats.
