Page 1 of 1

Can`t send emails...

PostPosted: 03. February 2010 23:48
by psicloone
I need to configure mailserver so that I can send emails for forgotten passwords (under XAMPP, windows 7).

Tried sendmail - it didn`t work (it didn`t show error, but the message did not arrive).

I tried mercury with the google mail server as this pictures show:

http://web-tourist.net/login/login/view.php?st=2958

It didn`t work.

I tried phpmailer - it didn`t work.

What could be the reason?

Re: Can`t send emails...

PostPosted: 24. February 2010 06:18
by Willy92
IF you are using a windows based version you will need to set the smtp settings in php.ini AND the sendmail settings in sendmail.ini The sedmail.ini can also take a username and password if your isp requires it - or do a pop before smtp. I have taken a lot of time to get it working for me but it now works fine. Check both of those ini files to see if they are configured with your info.

Re: Can`t send emails...

PostPosted: 25. February 2010 19:47
by rmdave
XAMPP 1.7.3 + Windows XP Pro + Default installation

The last line account default needs to be set to the 'account' entry you want to use in the file above. By default it is set to use the Mercury configuration that goes to localhost.

These settings worked for me:

Code: Select all
# A freemail service example
account Gmail
tls on
tls_certcheck off
port 587
host smtp.gmail.com
from abcd@gmail.com
auth on
user abcd@gmail.com
password mysecret

# Set a default account
account default : Gmail


And, I removed semi-colon in front of this line in php.ini:

Code: Select all

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"