开发者

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

I am following this instruct开发者_开发技巧ion 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 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 same error.Error is below.

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

Updated

auth_username=myname@gmail.com
auth_password=mypassword

I already put there and also I put two ssl dlls for that SSL connection

libeay32.dll
ssleay32.dll


since you are using xampp it would be easier to use phpmailer script:

PHP-Mailer 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜