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() doesn't work

Discussion in 'E-mail Discussion' started by InteractM, Apr 5, 2013.

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have clean install of WHM/cPanel and only one created account. On that account I'm not able to send email using PHP mail() function getting those errors:

    Code:
    /home/myweb/public_html/site/system/language/english/email_lang.php:7: $lang['email_no_recipients'] = "You must include recipients: To, Cc, or Bcc";
    /home/myweb/public_html/site/system/language/english/email_lang.php:8: $lang['email_send_failure_phpmail'] = "Unable to send email using PHP mail().  Your server might not be configured to send mail using this method.";
    
    Any clue how to enable it?

    Thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Searching for this:
    language/english/email_lang.php:7:

    Top result(s) are for EE forums. This sounds to me to be a configuration issue with your script.

    Not supported by cPanel though, my apologies.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Well, I have got that message from cPanel log as

    [newmailcgi] Recently Uploaded CGI scripts that send email on server01.myhosting.net

    Note: If this is the first time you received this mail, it contains the history for the entire month so far.

    Below are the recently upload scripts that contain code to send email. You may wish to inspect them to ensure they are not sending out SPAM.

    So this is not an error just a warning?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Correct. That email is your server alerting you that someone has uploaded a script that contains code that can send out emails. It has nothing to do with whether that script can actually send any email though.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Great! Is there any tool on forums to mark that thread as closed/resolved?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    There isn't right now. No worries though.
     
    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