Mail()
| From: | Dominic | Date: | Wed, 05 Feb 2003 18:51:12 +0000 |
| Subject: | Mail() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18371@lists.php.net to get a copy of this message | ||
I am trying to use PHP to email:
The simple code to test in the web page is :
mail("dominic@jet-base.com", "My Subject", "Line \nLine 2\nLine 3");
I have the php.ini configured using an email address within the domain of
the SMTP server (students@fcny.org). I have this domain (fcny.org) setup on
SMTP to allow for relaying email. If I leave the code as trying to email to
someone outside the domain (as seen above), it gives this:
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
Unable to relay for dominic@jet-base.com in
c:\inetpub\wwwroot\classes\html\Mail.php on line 8
Any thoughts would be greatly appreciated.