Forum Moderators: coopster
Any ideas as to why this could happen?
If the script hasn't changed, something else has.
suddenly it does not work
- how are you sending the mail -- using the mail() function?
- what is the return status of the mail() function (TRUE or FALSE)?
- what is in the web server's error_log?
- what changed in the web server config?
- what changed in the PHP config?
- what changed in the sending mail server?
- has your form been abused by spammers and the mail server admin decided to no longer relay your mails?
- what changed elsewhere in the sending system?
- what changed in the recipient's mail server?
- are new anti-spam rules in effect in the receiving server?
- is the sending mail server blacklisted on a DNSBL that is used by the receiving system for filtering?
- did you sent the mail with a valid return address to see a bounce?
- what is the bounce message then, if there is any?
- what changed at the receiving mail client?
- are new anti-spam rules in effect at the client?
- has the mail been mislaid at the client's end (perhaps it is in the spam folder, if there is any).
This list may be incomplete, though.
But as long as you don't give another hint on what part may "not work", it is hard to tell anything ....
Kind regards,
R.
my mail function looks like this:
mail("receipts@example.com".$CustomerEmail, "Service Receipt",
$MailBody, "From: receiptghost@example.com\r\n".'Content-type: text/html; charset=iso-8859-1' . "\r\n");
header( "Location: confirmation.html" );
The form still shows up on the site, and after submitting I get my confirmation page. This entire system was operational early last week when I made the final changes to it and tested to it.
If you would like I could provide a link to the site itself, or post my code.
what exactly sends it?
I would start with a simple test case with hand coded fields to test the basic mail path functionality.
The '"receipts@example.com".$CustomerEmail' looks strange unless we know what is in $CustomerEmail ?
Make sure that the From: address is a valid address to receive and see technical bounce messages from the mail system(s).
And a I would wrap the mail() to get its status:
if (mail(...)) { echo 'mail() passed';}
else {echo 'something went wrong in mail()';}
Depending on that status you may get a hint if there may be something wrong in the way your program works, or further down the chain beyond your program.
Kind regards,
Ralf