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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remote SMTP Script Issue

Discussion in 'E-mail Discussions' started by Wondersland, Sep 22, 2017.

  1. Wondersland

    Wondersland Registered

    Joined:
    Sep 22, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    IP: play.wondersland.net
    cPanel Access Level:
    Website Owner
    Hi, I have made a website with this smtp configuration:
    Code:
    <?php
    $GLOBALS['email'] = array(
        'username' => 'no-reply@',
        'password' => '******',
        'name' => 'WondersLand',
        'host' => ' ',
        'port' => 587,
        'secure' => 'TLS',
        'smtp_auth' => true
    );
    
    And I have this error:

    SMTP connect() failed.

    Using tls and ssl

    What to do?

    I don't have access to ssh
     
    #1 Wondersland, Sep 22, 2017
    Last edited by a moderator: Sep 22, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's possible your web hosting provider has disabled the ability for accounts to connect to a remote mail server via SMTP. You will need to contact your web hosting provider for assistance.

    Thank you.
     
Loading...

Share This Page