Skip to content

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/email

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

Multi-part form data request containing:

ParameterTypeRequiredDescription
emailSubjectstringYesSubject of email. Max 255 chars.
emailBodystringNoHTML body of email. Max 30,000 chars including HTML tags.
emailDisclaimerstringNoHTML email disclaimer. Max 4000 chars.
attachmentsfile(s)No1-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 ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSMaxFileUploadSizeExceptionSee Error Definitions
WSEmailServiceExceptionSee Error Definitions
WSInternalExceptionSee Error Definitions