mail() has been disabled for security reasons

pilotos - September 30, 2006 - 15:11
Project:User experience
Component:other
Category:bug report
Priority:normal
Assigned:pilotos
Status:closed
Description

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?

#1

vthirteen - November 8, 2006 - 11:38
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

vthirteen - November 8, 2006 - 11:45

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

vthirteen - November 8, 2006 - 13:10

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

kuahyeow - January 2, 2007 - 05:54
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

cosmicdreams - October 23, 2007 - 22:14
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.