Configure Gmail as SMTP in Xampp to send mail -Got Error.Why?
21,641
since you are using xampp it would be easier to use phpmailer script:
and if you insist on using xampp you should set: smtp_ssl = ssl
and configure the sendmail.ini so that it connects with your @gmail.com account credentials. or it will not be able to connect.
Comments
-
svk over 3 years
I am following this instruction and I got the same error like a first user comment.And I dont know how to fix this error.
Short notes what I did.
1.Change the sendmail.ini and php.ini settings for sending mail
2.Put the dlls on the send mail folder
3.Put my username and password from my gmail accountsmtp_server=smtp.gmail.com smtp_port=465 ; SMTPS (SSL) support ; auto = use SSL for port 465, otherwise try to use TLS ; ssl = alway use SSL ; tls = always use TLS ; none = never try to use SSL ;smtp_ssl=auto smtp_ssl=tls default_domain=brettshaffer.com error_logfile=error.log
Tried both tsl and ssl same error.Error is below.
10/12/07 18:03:36 : Connection Closed Gracefully.
Updated
[email protected] auth_password=mypassword
I already put there and also I put two ssl dlls for that SSL connection
libeay32.dll ssleay32.dll