Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Provide Mail Client Settings for Users

Discussion in 'cPanel Developers' started by Michael Turner, May 3, 2017.

  1. Michael Turner

    Joined:
    Mar 31, 2017
    Messages:
    18
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    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)?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelMichael, May 3, 2017
    Last edited: Nov 2, 2018
    Michael Turner likes this.
  3. Michael Turner

    Joined:
    Mar 31, 2017
    Messages:
    18
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Tampa, FL
    cPanel Access Level:
    DataCenter Provider
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice