Method SendMailSimple
SendMailSimple(String, SendMailSimpleParameterContract)
Send a mail
Declaration
void SendMailSimple(string connectionId, SendMailSimpleParameterContract sendSimpleMailParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
SendMailSimpleParameterContract | sendSimpleMailParameter | Mail to send |
Examples
POST http://YourServerName/InfoShare/Json/Common/SendMailSimple
Example for send a mail.{
"connectionId": "e13fb322-27f2-4b4f-bd2b-3d8897b1d4fa",
"sendSimpleMailParameter": {
"To": [
"violetta@kendox.com"
],
"Bcc": [
"francesca@kendox.com",
"georg@kendox.com"
],
"Cc": [
"remigius@kendox.com"
],
"Body": "Body text",
"BodyIsHTML": "false",
"Subject": "Test Subject"
}
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | You need "Send mail" access right (7F2B82D7-42A2-4635-BB62-CB7E24549C6B) |