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!

No emails are being received from Wordpress hosted on cPanel

Discussion in 'E-mail Discussion' started by bebory, Jul 7, 2016.

  1. bebory

    bebory Registered

    Joined:
    Apr 18, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am a total CPanel newbie - I have root access and have a website in which I have a form creator set up.
    When filling out the form none of the emails are received to the recipient or the administrator. When looking at the cpanel admin files, it indicates that the email was sent.

    I have this same plugin on another server not running cpanel and it works fine.
    Please help
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,
    You have to check mail logs on the server. The logs will show the exact reason the mail issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ssfred

    ssfred Well-Known Member

    Joined:
    Jan 6, 2012
    Messages:
    64
    Likes Received:
    4
    Trophy Points:
    58
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Check and ensure that /etc/localdomians and /etc/remotedomains are in tune with the type of MX record for the domain.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you search for one of the messages in /var/log/exim_mainlog and let us know the output? Here's an example of a command you can use:

    Code:
    exigrep user@affected-domain /var/log/exim_mainlog
    Ensure you post the relevant output in CODE tags, and remove any identifying information about the domain name or server.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. NOC_Serverpoint

    NOC_Serverpoint Well-Known Member

    Joined:
    Jul 3, 2016
    Messages:
    102
    Likes Received:
    6
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Hello,

    Open the file wp-includes/class-phpmailer.php

    In the file you should find:

    // PROPERTIES FOR SMTP

    In my file its on line 166.

    Below that you can edit the SMTP information for wordpress, if you are using googleapps you can use the following information for that:

    host: ssl://smtp.gmail.com
    port: 465
    smtpsecure: tls
    smtpauth: true
    username: your google apps username
    password: your google apps password

    Just leave the other smtp settings as they are.

    Save that file and upload, now any emails being sent via a contact form from your blog should send just fine.
     
    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