Download & Extend

mail() has been disabled for security reasons

Project:User experience
Component:other
Category:bug report
Priority:normal
Assigned:pilotos
Status:closed (fixed)

Issue Summary

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

#1

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?

#2

i've just tried this:

<?php
$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"

#3

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.

#4

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?

#5

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.

nobody click here