Provide Mail Client Settings for Users

Mar 31, 2017
18
6
3
Tampa, FL
cPanel Access Level
DataCenter Provider
I would like to provide the basic email settings users must have to connect to their accounts via client interface... I would like to collect the data via an API call. Reviewing API calls available, I can figure how to get _some_ of the information.

I am aware of the default values:
====================
Username: full email address
Password: Email Password
Incoming Mail Server: mail.domainname.com
Outgoing Mail Server: mail.domainname.com
SMTP port: 25 or 587 (465 with SSL)
POP3 port: 110 (995 with SSL)
IMAP port: 143 (993 with SSL)
SMTP authentication (My Outgoing SMTP server requires Authentication): Enabled
====================
Replacing "domainname.com" with your own domain name.

And I can get the Username. I can set the password (and store the setting although I wont know current settings). I can associate the domain name (domainname.com), BUT:
I wont know if the user changes mail server (the "mail" part of mail.domainname.com)
or Outgoing server
or port numbers
And I dont see the API call to return the SMTP authentication setting.

Is this information available via API call (password/server/port#/authentication)?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Last edited:
  • Like
Reactions: Michael Turner

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Hello @Michael Turner,

I know this is an older thread, but I came across some new information on this topic that I wanted to share. I've updated my previous response with links to UAPI functions that you may find helpful.

Thanks!