Reply to Re: PHP form script email error when sending email to hotmail account

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация