|
Posted by Gordon Burditt on 11/26/06 23:28
>I have a problem with the function "mail". It returns "true"
>but supposed recipients receive nothing. My code is as follows:
>
>$to = $form[address1];
>$subject = "E-mail Verification";
>$body = 'The first line\n';
>$body .= 'The second line.';
>$headers = 'From: webmaster@example.com';
>$res = mail($to, $subject, $body, $headers);
The domain example.com has no MX records and no mail server running
on the host pointed at by the A record. This is more than sufficient
to drop any mail claiming to be from example.com as SPAM.
What mail server are you using to send the mail? (Examine your settings
or the default ones and make sure they are appropriate.) Local sendmail?
Look at its logs. Did a message come in at all?
>I tried to send messages to two different e-mail addresses (to my yahoo
>account and on my university one). No one mail-box got the message. I
>also checked the bulk folder of the yahoo mail, it is also empty. Gould
>you please help me to solve this problem?
Navigation:
[Reply to this message]
|