Method SendMail
SendMail(String, SendMailParameterContract)
Send a mail
Declaration
void SendMail(string connectionId, SendMailParameterContract sendMailParameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
SendMailParameterContract | sendMailParameter | Mail to send |
Examples
POST http://YourServerName/InfoShare/Json/Common/SendMail
Example for send a mail.{
"connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
"sendMailParameter": {
"Recipients": ["test.mail@kendox.com"],
"MailAttachments": [],
"SmtpServer": "smtp.office365.com",
"SmtpUser": "MailTest@kendox.com",
"SmtpPassword": "Ruho7804",
"SenderName": "Kendox InfoShare Notification Service",
"SenderMail": "MailTest@kendox.com",
"Subject": "Test Email",
"Body": "Test Email",
"BodyIsHTML": false }
}
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) |