The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    13
    Likes Received:
    4
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's no specific API call available to fetch those settings, but you can review the files in the following directory to see how the data is obtained when enabling "Send welcome email with mail client configuration instructions" upon creating a new email account:

    /usr/local/cpanel/etc/icontact_templates/Mail/

    Thank you.
     
    Michael Turner likes this.
  3. Michael Turner

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

Share This Page