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.

No emails are being received from Wordpress hosted on cPanel

Discussion in 'E-mail Discussions' 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:
    329
    Likes Received:
    25
    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.
     
  3. ssfred

    ssfred Well-Known Member

    Joined:
    Jan 6, 2012
    Messages:
    62
    Likes Received:
    2
    Trophy Points:
    8
    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.
     
  4. 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 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.
     
  5. NOC_Serverpoint

    NOC_Serverpoint Active Member

    Joined:
    Jul 3, 2016
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page