Cannot get mail function working !?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cannot get mail function working !?

Postby kaisellgren » 18. June 2006 21:02

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?
kaisellgren
 
Posts: 2
Joined: 18. June 2006 20:53

Postby kaisellgren » 20. June 2006 17:46

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?
kaisellgren
 
Posts: 2
Joined: 18. June 2006 20:53

Postby WorldDrknss » 22. June 2006 08:38

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.
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40

without Mercury

Postby hwdornbush » 24. January 2007 21:14

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]
hwdornbush
 
Posts: 1
Joined: 24. January 2007 19:09


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests