ImpSdk.social.shareEmailWithTemplate(data, callback);
Sample input:
data = {
to: 'Test1@gmail.com',
from: 'someone',
message: 'some message',
campaignId: 1,
templateId: 1,
};
| input properties | |
| data: object | the click or mousedown event triggered on shareEmailWithTemplate button/link |
| object properties: | |
| to: string | email id to share |
| from: string | email from |
| message: string | message appended after the email template content |
| campaignId: number | email template will be decided based on the campaignId and templateId |
| templateId: number | email template will be decided based on the campaignId and templateId |
| callback: function | Callback function to be called when email response is ready. |
| output properties | |
| responseCode: number | 0 = An email is sent to recipient. 1 = unsuccessful |
| responseMessage: string | Success or Error Message |