Oops! Facing network problem. Unable to load this page. Refresh

Hello Guest

logo

Send Email to Recipient Group

Send Email to Recipient Group api document

Send Email to Recipient Group

POST /email/send-to-group

Request Information

MethodPOST
Request URLhttps://insprl.com/api/email/send-to-group
AuthenticationRequired How to Generate API keys?
ParameterTypeDescription
AuthorizationStringUse your "CLIENT KEY" for this Parameter
ParameterTypeValidateDescription
client_idStringRequiredUse your "CLIENT ID" for this Parameter
email_typeStringRequiredDefine email route "txn" for Transaction or "promo" for Promotional
sender_emailStringRequiredMailing Sender Email Address
groupslugStringRequiredAdd Group Slug
subjectStringRequiredAdd Email Subject
mail_bodyStringRequiredEmail Message
campaign_nameStringOptionalMaximum 100 characters allowed.
filesURLOptionalAdd multiple file URls with comma separated (Max 4 urls)
ParameterTypeDescription
codeNumericFind the code information below under "API Codes"
messageString / ArrayAs per the request handler
dataArrayResponse parameters:
  • queue_id
  • status
  • msg
CodeModeTypeDescription
100successStringOn Success
101failedStringAuthorization Error
102failedArrayParameter Validation Error
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://insprl.com/api/email/send-to-group");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER,
   array( 'Authorization: {CLIENT_KEY}' )); curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query(
array(
   'client_id' => '{CLIENT_ID}',
   'sender_email' => 'marketing@website.com',
   'groupslug' => '{RECIPIENT_GROUP_SLUG}',
   'subject' => 'Welcome to My Site',
   'mail_body' => 'Dear Customer, Write you message here.',
   'campaign_name' => 'Marketing Campaign 1',
   'files' => 'https://insprl.com/resource-doc/SPRL-SAMPLE-API-DOCUMENT.pdf,https://insprl.com/uploads/logo/logo-300.png',
)
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close ($ch);
{
"code":"100",
"message":"success",
"data":{
   "queue_id":"95510990",
   "status":"accepted",
   "msg":"Mail Queued"
}
}

HTTP API INTEGRATION

If you'd like to use our REST API into your application, Feel free to contact us.

8088 948 172 or Contact Us

Latest From Blog

Read our latest posts from our blog

image
Streamline Your Links with Bulk URL Shortener : The Ultimate Time-Saving Solution

In today's fast-paced world, where time is money, businesses and individuals often need to share links to various ..

19 Apr, 2023 SRPL Shortener
image
Bulk URL generators the NEXT BIG thing in Digital Marketing

If you are into marketing, you must have heard of Bulk URL shortening. They are saying Bulk URL shortening is the new ..

03 May, 2022 SRPL Shortener
image
How Best Indian URL Shorteners can help your business grow?

Every profit driven business enterprise is adopting and incorporating URL Shortening as a part of best business ..

24 Apr, 2022 SRPL Shortener

This website uses cookies in order to offer you the most relevant information. We may place cookies on your computer for functional, marketing and tracking purposes to improve our site and to show personalised content. You can read more about our cookies here: Cookie Policy. Please accept cookies for optimal performance.

Yes, I accept Cookies.