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.

after upgrade, phpmailer smtp had to be changed from localhost to mydomain.com

Discussion in 'E-mail Discussions' started by enboig, Nov 26, 2014.

  1. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    After an upgrade, my scripts stopped sending mails. I discoverd changing smtp server from "mydomain.com" to "localhost" solved this. After some time (and another upgrade) I had to revert the change to make it work.

    Is there a way to avoid this? some mails are lost between the update and my fix (assuming I remember to change all the scripts...).

    I am sorry if this has already been asked, I was unable to find it.
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you provided with any sort of PHP Error? I use PHPMailer myself on a few projects and have never come across this. I'll be happy to help, if I can.
     
  3. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    It is a problem with SMTP, every site using SMTP Auth fails. Server name isn't recognized
     
  4. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    It works fine for me. This is why I am asking for any sort of error log. Check your public_html folder or wherever the page you send mail from is. There should be a file called "error_log".
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on what you updated? Was it a cPanel update, did you run EasyApache, or was your PHP script upgraded?

    Thank you.
     
  6. enboig

    enboig Member

    Joined:
    Apr 25, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Cpanel automatic upgrade, nothing else
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can reproduce this issue? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page