Drupal can't send e-mails,like passwords(after registration)
Here is the error message:

mail() has been disabled for security reasons in /home3/cfadmin/public_html/modules/user.module on line 430.

What can i do to fix it?

Comments

vthirteen’s picture

Title: mail errors » mail() has been disabled for security reasons

the same here.
how do i know if it's a server setting or a drupal setting?

vthirteen’s picture

i've just tried this:

$message = "Line 1\nLine 2\nLine 3";
$rc = mail('HERE-I-PUT-MY-EMAIL-ADDRESS', 'Test Subject', $message);
if ($rc) {
  print "Mail successfully sent!<br>";
}
else {
  print "Failed to send mail<br>";
}

and the result was "Failed to send mail"

vthirteen’s picture

using a form made by webform module plus the smtp module i am able to send emails. i had enabled smtp module but contact module was not working anyway.

kuahyeow’s picture

Priority: Critical » Normal

Responding to the original report by pilotos, it looks more like a server issue. Please check your PHP server settings or contact your web hosting.

ps, assigning to yourself means that you will try to find a fix, which i presume not?

cosmicdreams’s picture

Status: Active » Closed (fixed)

It's been a bit on this issue with no feedback from the original poster. I'm marking as closed for now.