|
Posted by Joseph Melnick on 06/14/05 04:28
Hello Efraim,
the mail() function has a forth parameter headers.
The very minimum you should provide is a FROM line;
$headers = "From: \"".$fullname."\" <".$fromaddress.">\n";
mail($toaddress, $subject, $message, $headers);
Two things to check.
1. That your email headers are valid. (RFC 822)
2. That your message body is valid (Properly formed) and is not spam.
Missing the from line basically says that the email is anonymous and this is
one of the first tests that agressive spam filters will look for and flag.
It is also possible that the email address is actually bad.
Joseph Melnick
http://www.jphp.com/
"Eff" <Eff@nospam.com> wrote in message news:op.ssb1hecvtc6h7m@efraim...
> Im using a php form script that has been working correctly until i was
> advised that there is a problem when people submit form supplying a
> hotmail email address in the email field. Is there an issue with hotmail
> addresses?
>
> This is the error that is shown.
>
> Warning: mail() [function.mail]: SMTP server response: 550
> <effz@hotmail.com>, Recipient unknown in D:\psycom-unity\process.php on
> line 144
>
> This is the line of code.
>
> mail("$Email", "$subject", "Hello $Name,\n\Email message");
>
> Any help would be much appreciated.
>
> Thanks
> Efraim
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Navigation:
[Reply to this message]
|