Appearance
sendEmailToSelf ​
Allows an INTERACT end user to send an email (with or without attachments) to themselves. Typically used to send reports or reminders or whatever and initially used for Pfizer Stock App.
Request ​
http
POST /rest/user/send/emailHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
Multi-part form data request containing:
| Parameter | Type | Required | Description |
|---|---|---|---|
emailSubject | string | Yes | Subject of email. Max 255 chars. |
emailBody | string | No | HTML body of email. Max 30,000 chars including HTML tags. |
emailDisclaimer | string | No | HTML email disclaimer. Max 4000 chars. |
attachments | file(s) | No | 1-M file attachments. Max 20Mb. |
If you need help, let Aaron know as it's difficult to paste a binary multi-part form request in here.
Response ​
200 OK ​
HTTP 200 means it succeeded but if you must have a message then see below
JSON response:
json
{
"errorCode": 0,
"errorMsg": "OK"
}Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSMaxFileUploadSizeException | See Error Definitions |
WSEmailServiceException | See Error Definitions |
WSInternalException | See Error Definitions |