Topic on Extension talk:SwiftMailer

install OK, Could be seen in Versions:Special page, but not working.

4
Ychuangtw (talkcontribs)

Hey guys,

I'm running MediaWiki 1.26.3 with PHP 7 on Windows platform.

i'm trying to make the smtp functionality to work with Gmail account and tried PEAR mail & net_smtp method but however it didn't work.(fail to connect to smtp.gmail.com:25 with TLS)

So I tried the second method, which is SwiftMailer. I could see it shown in the Version:Special Page as "SwiftMailer 1.0 GPL-2.0" and I did specify "$wgSMTPAuthenticationMethod = 'tls';" in SwiftMailer.php but however it didn't work.

It gives the error msg when I try to use the Password recovery by email function. it says "[fe7c6382] 2016-06-07 16:53:37: 嚴重例外類型 "MWException"

Any suggestions?

Thanks!

01tonythomas (talkcontribs)

Okey. So, taking a look at your previous error message -- (fail to connect to smtp.gmail.com:25 with TLS) -- are you sure your firewall is allowing access to port 25 ?

Please try telnet smtp.gmail.com 25 from your host machine and tell me if you get something like Connected to gmail-smtp-msa.l.google.com.

Escape character is '^]'.

220 smtp.gmail.com ESMTP c16sm2563090pfb.33 - gsmtp

This post was hidden by 01tonythomas (history)
114.34.58.226 (talkcontribs)

Hi TonyThomas,

Thanks for your reply.

Yes. i can connect to smtp.gmail.com:25 without problem by telnet client.

when i was using PEAR mail functionality, it gives this error:

Failed to connect to ssl://smtp.gmail.com:25 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:25 (Unknown error) (code: -1, response: )]

And i don't really know how to solve this problem. If i don't use "ssl://" prefix then it won't proceed with STARTTLS. :(

Reply to "install OK, Could be seen in Versions:Special page, but not working."