SMTP/Apache on Windows problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
wonuola
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2005 9:24 am

SMTP/Apache on Windows problem

Post by wonuola »

I have configured my php.ini file like this:

SMTP = mail.xxx.xxx.xxx ; for Win32 only
smtp_port = 25
sendmail_from= scott101@xxx.xxx.xxx ; for Win32 only

; For Win32 only.
;sendmail_from = scott101@xxx.xxx.xxx

But get this warning:
mail(): SMTP server response: 501 This system is not configured to relay mail from <scott101@xxx.xxx.xxx> to <shogzy@xxx.xxx.xxx> for 81.199.87.25

Can anybody help
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it would appear that your ISP doesn't allow smtp relays.. a good thing. You should probably use an SMTP class, like the pear one :: http://pear.php.net/package/Net_SMTP or phpmailer :: http://phpmailer.sourceforge.net/
wonuola
Forum Newbie
Posts: 2
Joined: Mon Feb 21, 2005 9:24 am

Thanks Feyd

Post by wonuola »

Will give em a try.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

feyd wrote:it would appear that your ISP doesn't allow smtp relays.. a good thing.
Why good ? Why is it not good to use mail() function directly ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

look here for a decent explanation: http://micro.uoregon.edu/smtprelayblock/
Post Reply