Question

Good morning,

Today I have found something wrong in my website when I try to send an e-mail trough the mail() PHP function. The mail is not sent and I have this error message:

Warning: mail() has been disabled for security reasons in /home/user/html/modules/mod_jumi/tmpl/default.php(18) : eval()'d code on line 57

What can I do in order to know which is the problem in this module? I have to enable the mail() function somewhere in my Joomla 3.3?

And that's my line 57:

mail('mymail@mail.com','Contact from',$message,$headers);

Thanks,

Regards,

Was it helpful?

Solution

It means that whatever host you're using has disabled mail(). Note that mail() can be used to send out mass spam, for example:

while(true) {
    mail('mymail@mail.com','Contact from',$message,$headers);
}

A lot of shared hosts throttle mail() or outright disable it. You'll have to contact your hosting provider about the issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top