This module is used to update email server configuration by the user. The Service URL of the module is supported by following link-
https://www.enterice.com/ICEAPI/api/EmailAdmin/UpdateEmailServer
•Allowed for-
Admin
•Json Formats-
1. Code snippet for Web Service Use-
UpdateEmailServer
{
“OrgId”: 59,
“SkillId”: 663,
“SMTPServerAddress”: “smtp.mail.com”,
“SMTPUserName”: “HHarry”,
“SMTPPassword”: “Clark1!”,
“SMTPMailbox”: “hclarke@etechtexas.com”,
“SMTPPort”: “587”,
“SMTPPollrate”: “10”,
“Status”: “Enabled”,
“IsEmailSpoofing”: true,
“SpoofEmail”: “chris@etechgs.com”,
“IsSSL”: false,
“Pop3ServerAddress”: “pop3.mail.com”,
“Pop3UserName”: “Alex”,
“Pop3Password”: “Password1@”,
“Pop3Mailbox”: “alex@rediffmail.com”,
“Pop3Port”: “995”,
“Pop3Pollrate”: “10”,
“ImapServerAddress”: “sample string 19”,
“ImapUserName”: “sample string 20”,
“ImapPassword”: “sample string 21”,
“ImapMailbox”: “alex@rediffmail.com”,
“ImapPort”: “589”,
“ImapPollrate”: “10”,
“IsImap”: false,
“IsTLS”: false,
“Token”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdpZCI6MTI4LCJ1c2VybmFtZSI6ImRzYUBnbWFpbC5jb20iLCJleHAiOjE0ODI0MTk1NDV9.XgR8TsDNwmsUezVykeUzGcISUsmpT5Nx-aUYaMScmDw”
}
2. Description for Request Parameters-
| S.No | Name | Type | Description |
| 1 | Token | String | Authentication Token |
| 2 | EmailServerId | Int | Id of email server |
| 3 | OrganizationId | Int | Id of organization |
| 4 | SkillId | Int | Id of skill |
| 5 | SMTPServerAddress | String | Host address of smtp server |
| 6 | SMTPUserName | String | Username to access mail server |
| 7 | SMTPPassword | String | Password to access mail server |
| 8 | SMTPMailbox | String | Email address of mail server |
| 9 | SMTPPort | String | SMTP mail server port |
| 10 | SMTPPollrate | String | SMTP mail server pollrate |
| 11 | Status | String | Enabled/Disabled |
| 12 | IsEmailSpoofing | Bool | True=Spoofing Enabled. False=Spoofing Disabled |
| 13 | SpoofEmail | String | Spoofing email address |
| 14 | IsActive | Bool | True=Active, False=Inactive |
| 15 | IsSSL | Bool | True=SSL Enabled, False= SSL Disabled |
| 16 | Pop3ServerAddress | String | Host address of pop3 server |
| 17 | Pop3Username | String | Username to access mail server |
| 18 | Pop3Password | String | Password to access mail server |
| 19 | Pop3Mailbox | String | Email address of mail server |
| 20 | Pop3Port | String | Pop3 mail server port |
| 21 | Pop3pollrate | String | Pop3 mail server pollrate |
| 22 | ImapServerAddress | String | Host address of server address |
| 23 | ImapUserName | String | Username to access mail server |
| 24 | ImapPassword | String | Password to access server |
| 25 | ImapMailbox | String | Email address of mail server |
| 26 | ImapPort | String | Imap mail server port |
| 27 | ImapPollrate | String | Imap mail server pollrate |
| 28 | IsImap | Bool | True=Imap, False=Pop3 |
| 29 | IsTLS | Bool | True=TLS Enabled, False=TLS Disabled |
3. Response Example-
Success:
{ “Message”: ” Success” }
Fail:
{“Message”:”The request is invalid.”}