Page 1 of 1

Cannot get mail function working !?

PostPosted: 18. June 2006 21:02
by kaisellgren
Hi,

I've problems with XAMMP, PHP mail function.

I can not send mails with PHP, I get an error saying that the server does not relay non-local mails ?

What should I do?

Help?

PostPosted: 20. June 2006 17:46
by kaisellgren
I have tried Free SMTP server and also the Mercury mail server, but with no luck :(

Suggestions?

Aren't there really anyone else who can not send mails with mail() function when using Mercury?

PostPosted: 22. June 2006 08:38
by WorldDrknss
You will need to configure php.ini to use fake sendmail.
Open xampp/apache/bin/php.ini
Find sendmail

and change it so that it looks something similar to bellow - make sure to change to the correct path.:

Code: Select all
; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "/xampp/xampp/sendmail/sendmail.exe -t"


then open xampp/sendmail/sendmail.ini and edit the following:
Code: Select all
;smtp_server=localhost

to
Code: Select all
smtp_server=localhost

and
Code: Select all
;auth_username=
;auth_password=

to
Code: Select all
auth_username=MercuryMail UserName
auth_password=MercuryMail Password


then save and restart apache.

without Mercury

PostPosted: 24. January 2007 21:14
by hwdornbush
I wanted to do this without needing Mercury. My ISP is Earthlink. I was successful by setting up xxamp/sendmail/sendmail.ini as follows:

smtp_server=smtpauth.earthlink.net

auth_username=[my earthlink username]
auth_password=[my earthlink password]