Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎4 - Publisher Related‎ > ‎

Send Email

Will send an email using the publisher defined gateways.  This method provides an alternative email generation to eliminate dependency on GroupCommerce to maintain and update publisher email templates such as Refer Friends and Share Offer.  It is not required to use this method to send emails such as the publisher might have their own email gateway.

If the From and FromName are not supplied, the values configured inside PubAdmin will be used.

The TextBody is required as it is most important to have a default email body.  The HtmlBody if provided will be included as an multipart alternative content type for users who wish to receive emails in Html format.  (We know it is most of them)

Read more about mutlipart alternative.

Method: POST /api/v3/publisher/sendEmail

Authentication: oauth
Required Form Name Data Type Explanation
From email
The from address for the email.  Will use publisher defined value if not present.
FromName string The from name for the email.  Will use publisher defined value if not present.
No HtmlBody string The html body for the email.
Subject string The subject for the email.
TextBody string The text body for the email.
To email
The to address for the recipient.
ToName string The to name for the recipient.

success - Whether the email was successfully sent.

Sample Request:

POST hhttps://api.groupcommerce.com/api/v3/publisher/sendEmail



Authorization: OAuth oauth_signature="XZiT1EC3ubaPmF%2BBlr0sydaSfWE%3D", oauth_nonce="8764082", oauth_timestamp="1342055685", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:


Sample XML Response:

<sendEmailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">