October 30th, 2012, 01:08 AM
PHP error when sending emails
I have installed email script on a server but when i try to send emails i am receiving this error:
Fatal error: require_once() [function.require]: Failed opening required '/srv/disk11/1171009/www/websoftwareoutsourcing.com/inter/admin/functions/api/module_factory.php' (include_path='.:/usr/local/php5/share/pear') in /srv/disk11/1171009/www/websoftwareoutsourcing.com/inter/admin/functions/api/module_trackerfactory.php on line 17
Does anyone have an idea what this error could mean?
October 30th, 2012, 03:55 AM
Does that file exist? PHP doesn't think so. Or at least it doesn't think it can open it.
October 31st, 2012, 12:43 PM
The problem seems to be that PHP use the ini directive sendmail_from to set the from email address in the SMTP protocol. If this is not correctly set, or if it does not match the from header in the email headers, the email is caught by spam protection software. The simplest solution is to set the directive during execution:
$headers = "From: $email_from";
mail($to, $subject, $message, $headers);
Comments on this post
October 31st, 2012, 01:28 PM
Well color me shocked
I ♥ ManiacDan & requinix
This is a sig, and not necessarily
a comment on the OP:
don't be a help vampire
November 5th, 2012, 07:47 AM
Solutions of the problem.
It seems required file does not exist in the specified directory.
November 5th, 2012, 02:37 PM
A great example of "Reading the error message fail".
Originally Posted by AimyThomas
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984