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

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

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    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.
     
  3. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    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.
     
  5. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    There isn't right now. No worries though.
     
Loading...

Share This Page