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!

PHP Mail Not Sending

Discussion in 'E-mail Discussion' 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 Technical Support Community Manager
    Staff Member

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

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

    Thank you.
     
    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