...

View Full Version : PHP Mail function not working with XAMMP?



kaisellgren
06-17-2006, 07:32 PM
Hi,

I've tried EasyPHP and normal PHP configuration and mail function worked well, but now I have XAMMP and my mail function is not working anymore.

I've installed the full package of XAMMP succesfully.

Error I got after trying to send: We do not relay non-local mail, sorry.

Have someone any ideas? I've tried to put my From: -header to the following without luck:
me@localhost
me@example.com
localhost
*MYIP*

Has someone idea on what is non-local mail? So I can not mail to anywhere else than my own cpu??

d11wtq
06-17-2006, 10:28 PM
Sounds like you're trying to connect to an SMTP server that doesn't permit your host to relay mail. What's the SMTP setting in php.ini?

kaisellgren
06-18-2006, 08:03 PM
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = me@example.com



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum