PHP Mail function not working with XAMMP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

PHP Mail function not working with XAMMP?

Post by kaisellgren »

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??
User avatar
m0u53m4t
Forum Contributor
Posts: 101
Joined: Wed Apr 19, 2006 7:47 am
Location: Wales

Post by m0u53m4t »

I think its anything not with the same domain. So if its hosted at http://www.freemail.com then you can only send mail to *@freemail.com addresses.
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Post by kaisellgren »

m0u53m4t wrote:I think its anything not with the same domain. So if its hosted at http://www.freemail.com then you can only send mail to *@freemail.com addresses.
?
I don't get it at all. Hosted at http://www.xxxxxxxx? I'm keeping a server and sending mail from my cpu to my hotmail mail and I got error.

Hmmmm
Post Reply