I'm trying to setup SMTP on my local box to test mediawiki and wordpress email functionality. I use GMail as my SMTP mailserver.
Reading WAMP5 documentation, it looked like all I needed to do was modify [mail function] in the php.ini file.
Regardless which lines below are uncommented, I get the same error msg (this one is from the new user "Confirm e-mail address" mediawiki special page:
Mailer returned: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
The above mailserver (localhost) and port (25) in the above example, vary depending on which of the below lines are uncommented.
To make sure I'm using active GMail SMTP mailservers, I use the below URL to find out GMail MX records:
[
www.dnsstuff.com]
[mail function]
; For Win32 only.
;Below smtp obtained from GMail MX records
;select 1 SMTP line to uncomment for each test
;SMTP = smtp.gmail.com
;SMTP = gsmtp183.google.com
;SMTP = gsmtp163.google.com
;SMTP = gmail-smtp-in.l.google.com
;SMTP = alt1.gmail-smtp-in.l.google.com
;SMTP = alt2.gmail-smtp-in.l.google.com
;GMail recommends either port 465 or 587 - 465 is preferred
select 1 smtp_port line to uncomment for each test
;smtp_port = 465
;smtp_port = 587
;below does not change for each test
sendmail_from =
username@gmail.comSMTPAuth = true
Username =
username@gmail.comPassword= xxxxxxxxxxxxx
Any suggestions what else I need to do to get GMail to work:
Thx. in advance,
Lars
Lars