Method GetSMTPSettings
GetSMTPSettings(String)
Get SMTP configuration
Declaration
SMTPSettingsContract GetSMTPSettings(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
Returns
Type | Description |
---|---|
SMTPSettingsContract | SMTPSettings |
Examples
POST http://YourServerName/InfoShare/Json/Common/GetSMTPSettings
Example for get SMTP configuration.{
"connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8"
}
Response:
{
"GetSMTPSettingsResult": {
"Password": "Ruho7804",
"SendTimes": ["0001-01-01T06:00:00", "0001-01-01T10:00:00", "0001-01-01T14:00:00",
"0001-01-01T07:00:00", "0001-01-01T11:00:00", "0001-01-01T15:00:00", "0001-01-01T08:00:00",
"0001-01-01T12:00:00", "0001-01-01T16:00:00", "0001-01-01T09:00:00", "0001-01-01T13:00:00"],
"SenderMailAdress": "MailTest@kendox.com",
"SenderName": "Kendox InfoShare Notification",
"Server": "smtp.office365.com",
"User": "MailTest@kendox.com" } }
}
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 "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f) |