• Resolved tatazildo

    (@tatazildo)


    So I was having this problem we’re all having of not being able to connect to the SMTP server.

    In my case I had to send through SMTP without any encryption. I noticed that even when I checked the “no encryption” option on the plugin it would try to connect using an encryption method.

    So I went to wp-includes/class-phpmailer.php and changed $SMTPAutoTLS from true to false, meaning it won’t try to use TLS encryption automatically anymore.

    It connected and it worked.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter tatazildo

    (@tatazildo)

    By doing this I had a successful test (via plugin settings page).

    I had to manually add this to my PHP/HTML form code for it to work in the real thing:

    $mail->SMTPAutoTLS = false;
    $phpmailer->SMTPAutoTLS = false; (I didn’t know which one would work)

    Plugin Author Slava Abakumov

    (@slaffik)

    This will be fixed in the upcoming plugin update.

    Hi,

    When will the update be released? i am struggling to get the plugin to send out emails via gmail (i dont use a gmail account, i have a domain name with the emails routed through gmail.)

    I’m looking at replacing my current SMTP connector so am keen to see whether this update will help fix my issue.

    Philb

    Is there any news on when this update will be released?
    I am using smtp.office365.com and TLS on port 587.

    Plugin Author Slava Abakumov

    (@slaffik)

    Really soon, that’s what I can say right now.

    @slaffik Modifying the wp-includes/class-phpmailer.php file did the trick! Is it a security/performance problem to leave this value on false?

    Do I need to set ik back on true on the following update?

    Plugin Author Slava Abakumov

    (@slaffik)

    Your next WordPress update will break that (overwrite the file).
    Next WP Mail SMTP 0.11 will be with that fix, so no need to overwrite anything.

    @slaffik Ok. I hope the next WP Mail SMTP update will be come available before the next WordPress update. Otherwise, no emails wouldn’t be send.

    Updating the plugin on old sites, it’s now working.
    Installing and using version 0.11.1 on new installations, still fails.

    Sorry… My bad. The version was 0.10.1 (not 0.11.1) – So… YES it’s fixed and working! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[FIX] Can’t connect to SMTP’ is closed to new replies.