Page 1 of 1

SMTP/Apache on Windows problem

Posted: Mon Feb 21, 2005 9:46 am
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

Posted: Mon Feb 21, 2005 9:54 am
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/

Thanks Feyd

Posted: Mon Feb 21, 2005 10:26 am
by wonuola
Will give em a try.

Posted: Tue Feb 22, 2005 2:25 am
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 ?

Posted: Tue Feb 22, 2005 8:55 am
by feyd
look here for a decent explanation: http://micro.uoregon.edu/smtprelayblock/