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.

PHP Mail Not Sending

Discussion in 'E-mail Discussions' started by entranceexam2018, Jul 28, 2017.

  1. entranceexam2018

    entranceexam2018 Registered

    Joined:
    Jul 28, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi
    cPanel Access Level:
    Root Administrator
    $toMail = "me@gmail.com"; //this works - I get the email at my Gmail.com
    $toMail = "me@mydomain.com"; //this doesn't - I get nothing

    mail($toMail, $subject, $message, $header);
    This Is the the script which i use in my cpanel from which i can access and my mail and also receive it.
     
  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,

    Could you let us know what you see in /var/log/exim_mainlog when the message delivery fails?

    Thank you.
     
Loading...

Share This Page