Configuring to 'send' non-local mail
Posted: 06. April 2007 18:57
I'm using XAMPP with WinXP Home SP2 to test my website locally.
I've been able to set up the mail server to send mail (from a form on a web page) that is addressed to a non-local address (and receive it in Thunderbird on my localhost account). However, if I try sending from any address other than username@localhost I get the following message:
"Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\xampp\htdocs\maolbhuidheBBdev\pages\email.php on line 75"
email.php line 75 is where the mail() function is called as 'mail($mailTo, $subject, $message, $mailFrom)'
It's happy with $mailTo as non-local, but not when $mailFrom is non-local
For testing purposes I'd quite like to be able to set $mailFrom to a non-local address (it just seems a better test that way). But is it actually possible ?
I've been able to set up the mail server to send mail (from a form on a web page) that is addressed to a non-local address (and receive it in Thunderbird on my localhost account). However, if I try sending from any address other than username@localhost I get the following message:
"Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\xampp\htdocs\maolbhuidheBBdev\pages\email.php on line 75"
email.php line 75 is where the mail() function is called as 'mail($mailTo, $subject, $message, $mailFrom)'
It's happy with $mailTo as non-local, but not when $mailFrom is non-local
For testing purposes I'd quite like to be able to set $mailFrom to a non-local address (it just seems a better test that way). But is it actually possible ?