N/APosted on - 01/26/2012
Recently, I installed Drupal Open-Source CMS and CMF version 4.7.3. I have been working with it for the past week.
I posted blogs and build applications and everything go well.
But when I got a notification for the comment in one of my blogs, I got an error similar to the posted screenshot below.
I am using PHP 4.3.11. Can someone please help?
warning: mail(): Bad parameters to mail() function, mail not sent. in /hsphere/local/home/oldrup/test.oldrup.dk/includes/common.inc on line 1818.
Unable to send mail. Please contact the site admin.
Error in Drupal Open-Source CMS and CMF 4.7.3
Are you working in Local host or have a hosting plan that you have bought? If you have moved to a new host or have bought hosting, then there is something wrong with the hosting. Try doing the following things which will help you narrow down the problem
Try the new PHP version.
Send a detailed email to your hosting company and tell them that you are facing this problem and that if they have any clue about this. You need to report these issues as soon as possible before doing anything else.
Try removing the BCC from the headers and then see if the function works.
After that, remove all the headers and start adding them 1 by 1 to find the problem. This step is linked to the 2nd one that there might be a chance that your hosting company don't allow a Header type that you are using. Think of it as a security precaution that is being adopted by most of the hosting companies
If you are mistakenly doing the wrong thing, try checking for the address that it must be a mail box that is being hosted at the sender’s mail server and at the reply to parameter must contain the email address of any user.
Try separating your headers with r or n. This is because some bad UNIX mail agents replace the LF by CRLF by themselves.