Forum Moderators: coopster

Message Too Old, No Replies

PHP Mail Problem - IP name possibly forged?

         

neophyte

12:01 am on Sep 28, 2007 (gmt 0)

10+ Year Member



Hello All -

I'm experimenting with the PHP mail function with the simplest of scripts shown here:

<?php
mail('cole@example1.us','Test email subject line','Here is the message',
"From: accounts@example2.com");
?>

I've already set up my php.ini on my local dev environment to send mail, but sometimes (not always!) when I test my script, I get this message:

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 <cole@example3.com>... Relaying denied. IP name possibly forged [210.14.45.xx] in F:\WEBDEV\_Koisis Base Directory\test_email.php on line 10.

I get this message occasionally with Microsoft Outlook as well if I'm replying to someone's email.

Does anyone know a way to fix this so I can continue my testing?

Neophyte

[edited by: jatar_k at 12:23 am (utc) on Sep. 28, 2007]
[edit reason] examplified and ip [/edit]

jatar_k

12:31 am on Sep 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you have three different domains there. it could be denying just on those.

are you sending it from the domain "example3" where the error is originating from or somewhere else?

neophyte

2:54 am on Sep 28, 2007 (gmt 0)

10+ Year Member



jatar_k -

I did a cleanup of spyware stuff on my box and tried it again and now all is well - can now send to any domain with a "From:" header indicating any domain as well. Works for testing purposes.

Thanks!