Configure Gmail as SMTP in Xampp to send mail -Got Error.Why?

I follow this instruction and I got the same error as the first user comment. And I do not know how to fix this error.

Brief notes on what I did.

1. Change the sendmail.ini and php.ini settings for sending mail
 2. Put the dll in the mail sending folder
 3. Enter my username and password from my gmail account

smtp_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 the same error. The following is given.

10/12/07 18:03:36 : Connection Closed Gracefully.

Update

auth_username=myname@gmail.com
auth_password=mypassword

I already put there, and also I installed two ssl-dlls for this SSL connection

libeay32.dll
ssleay32.dll
+3
source share
1 answer

xampp, phpmailer script:

PHP-Mailer script

xampp, : smtp_ssl = ssl

sendmail.ini, @gmail.com. .

+5

Source: https://habr.com/ru/post/1778952/


All Articles