Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I was just asked to write a form for a website. The form needs only to collect some data and email it to myself.
To write the code, I used a Mac running MAMP software(Mac/Apache/MySQL/PHP5). Using this machine, I am able to send the email no problem.
The problem is when I put the same form on the server it needs to be on which is not under my control. All I know is that the server is running Windows NT.
Here's the php email script:
[syntax="php"]<?
$mailto = "myemail@gmail.com";
$subject = "Some Subject";
$content = "some content";
$headers = "From: me@localhost.com";
mail($mailto,$subject,$content,$headers) or die("Could not send email.");
?>Warning: mail() [function.mail]: SMTP server response: 553 5.3.0 ... DISCARD Spam Relay in d:\Customers\user1438454\www\staging\request.php on line 665
Could not send information.
No sent email. Now, I called the server provider (I had to track down who it was) and they said to make sure I'm using mailhub.registeredsite.com as the SMTP
I wrote a phpinfo file and ran it on the server and it showed that the SMTP was set (in php.ini) to mailhub.registeredsite.com... so I don't know why they're telling *me* this. It should work right? I've read a lot lately and I just can't seem to come up with an answer.
The strange part is how the Warning message says DISCARD Spam Relay. Are my emails being blocked for some reason? I could really use help on this.
Thanks.
pickle | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]