Errors, php.ini, SMTP questions
Moderator: General Moderators
Errors, php.ini, SMTP questions
Hello,
I have put together a simple 404 error page that e-mails the site that was requested and the page referrer. The page works great on one of our sites but I'm having some trouble on the other one. The second site is on a different server and I had to change the SMTP setting in php.ini.
For some reason, when I try the mail() function on a page on that site - No e-mail is sent (I added a conditional - IF (mail($address, $subject, $message)) {print("Success");} - so that I could tell when it sent). Unfortunately I'm not getting errors, so I'm having trouble diagnosing the problem.
"errors_display" is currently set to off - would that be the best place to start?
I'm still new at this, so thank you for your patience.
Toni
I have put together a simple 404 error page that e-mails the site that was requested and the page referrer. The page works great on one of our sites but I'm having some trouble on the other one. The second site is on a different server and I had to change the SMTP setting in php.ini.
For some reason, when I try the mail() function on a page on that site - No e-mail is sent (I added a conditional - IF (mail($address, $subject, $message)) {print("Success");} - so that I could tell when it sent). Unfortunately I'm not getting errors, so I'm having trouble diagnosing the problem.
"errors_display" is currently set to off - would that be the best place to start?
I'm still new at this, so thank you for your patience.
Toni
http://www.php.net/imap is about the best place to start for configuring smtp/imap. not that hard long as you have a mail server.. btw, did you check PHPINFO to see if it was an installed service already??