• Hello;
    yesterday I downloaded this plugin (Newsletter Ver. 3.8.2) on a new wp blog (ver 4.2.2) on a new free subdomain and free host to see how it works.
    I could not make the mailing works, so I installed Postman SMTP Plugin (Ver. 1.6.22),did the setting for this plugin, it needed to get a Client ID for web application in google, so I did and everything was OK,
    Did the following testing:
    Grant Permission with Google
    Send a test Email
    And The Test was OK.
    the recommended setting are: SMTP-STARTTLS with OAuth 2.0 authentication to host smtp.gmail.com on port 587.

    but still can not do the mailing works in newsletter SMTP setting tab.
    Here is the pictures for Postman SMTP setting:
    PostMan SMTP Setting

    and here is the picture of SMTP setting area of Newsletter:
    Newsletter SMTP Setting

    In the Newsletter SMTP setting as you see on the picture, I have filled all the setting, and did mail test, which fails to connect to smtp, I did test with different setting:
    using No Secure Protocol,
    TLS protocol,
    SSL protocl,
    and also set the Smtp to No,
    and also changed the port to 443 as well,
    with no result and connection to smtp fails.

    the host is free and access to SMTP is not possible, so I want to use Gmail server to send newsletter.
    appreciate your help.

    https://ww.wp.xz.cn/plugins/newsletter/

Viewing 15 replies - 1 through 15 (of 21 total)
  • You have to set Enable the SMTP to No.

    Otherwise Newsletter executes a bit of code in plugin.php bypassing Postman SMTP:

    $this->mailer->Send();
    Thread Starter manou

    (@manou)

    Thank you for your reply;

    I did try that way as well,
    set SMTP to No,
    protocol: SSL protocol,
    Port: 587

    but getting this error :
    SMTP -> ERROR: Failed to connect to server: (0)SMTP connect() failed.

    Then it is still bypassing Postman. I haven’t used Newsletter so I’m not sure why. It has code to be Postman-compatible in diagnostic.php and subscription.php, but in plugin.php it’s doing something custom and incompatible.

    But from the error message, I would try setting SMTP to Yes and what Newsletter calls “TLS Protocol”. Gmail’s port 587 uses STARTTLS, not SMTPS so I think the security protocol you’ve set in Newsletter (“SSL Protocol”) is incorrect.

    Thread Starter manou

    (@manou)

    Thanks for reply;
    Yes you are right the SSL protocol is not right, but I have tried all the recommended setting and did not work, so I tried all other setting as well.

    Thread Starter manou

    (@manou)

    this is some part of Error message, I can not post all of them, it will not show up, don’t know why,
    anyhow, this error is for setting
    SMTP to NO
    TLS protocol
    port 587

    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “220 mx.google.com ESMTP ch2sm2593042wib.18 – gsmtp
    “SMTP -> get_lines(): $data is “220 mx.google.com ESMTP ch2sm2593042wib.18 – gsmtp
    “SMTP -> FROM SERVER:220 mx.google.com ESMTP ch2sm2593042wib.18 – gsmtp
    CLIENT -> SMTP: EHLO naturalxxxxxxxx.is-best.net
    SMTP -> get_lines(): $data was “”SMTP -> get_lines(): $str is “250-mx.google.com at your service, [185.27.134.47]
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [185.27.134.47]
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [185.27.134.47]
    “SMTP -> get_lines(): $str is “250-SIZE 35882577
    “SMTP -> get_lines(): $data is “250-mx.google.com at your service, [185.27.134.47]
    250-SIZE 35882577
    “SMTP -> get_lines(): $data was “250-mx.google.com at your service, [185.27.134.47]
    250-SIZE 35882577

    Try:
    SMTP to YES
    TLS protocol
    port 587
    and your Gmail username and password.

    Thread Starter manou

    (@manou)

    Thanks for your help;
    I sent a text file containing all the error code.

    Thread Starter manou

    (@manou)

    I tried that as well, I get a long error, it seems same error as the one I sent you.

    Your problem is related to Gmail, not Newsletter now.

    Gmail has told you :

    ERROR: Password command failed:
    Please log in via your web browser and then try again.
    Learn more at https://support.google.com/mail/answer/78754

    If you are 100% sure that your password is correct, you may have to switch from Password-based authentication to OAuth 2.0. Newsletter does not support this (though Postman does).

    See http://googleonlinesecurity.blogspot.ca/2014/04/new-security-measures-will-affect-older.html

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note: @manou For that many lines please consider using pastebin.com and share the link to that paste instead.

    That many lines of log data just doesn’t work here.

    @jdembowski, side side note: unfortunately for SMTP transcripts it is never a good idea to paste them online as they contain the Account username and password, base64-encoded.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Way, way off topic: πŸ˜‰

    That’s not good. Pasting that in these forums is even worse then as they are duplicated in many places. The moderators can redact from here but not from those other places.

    Can the plugin regex those lines out? I haven’t looked at the logs (I use the plugin on a basement test install) but I’m worried users will post things they’ll regret.

    Yes way way off topic now πŸ™‚ haha. Postman SMTP shows the user a big red bold warning not to post them online. But I’ve never seen another plugin warn users. The WP Mail SMTP forum is full of transcripts with authentication credentials.

    Can the forum automatically censor posts? For plugins that use PHP Mailer underneath, you could censor these lines:

    CLIENT -> SMTP: theclientdata

    replacing it with

    CLIENT -> SMTP: <redacted>

    For other cases you need a moderator to inspect any post containing the keywords “AUTH PLAIN” or “AUTH LOGIN”.

    Here’s a fun Google search experiment.

    Thread Starter manou

    (@manou)

    Thank you Jason Hendriks for your help;

    well, it seems setting this plugin with Gmail server is not an easy task.

    I was reading this post: newsletter plugin and Postman Smtp plugin Jan Dembowski suggested that postman SMTP plugin may work with the newsletter plugin, that is why I tried it,

    so Jan Dembowski may be able to help me out with the setting.

    do you have experience on using postman plugin with newsletter plugin?

    Appreciate your help on this as well.

    Thread Starter manou

    (@manou)

    Jason Hendriks, regarding the right password for the gmail account that I have, Yes I am sure the password is correct, perhaps I should try another SMTP plugin.

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Setting up Gmail server with the plugin’ is closed to new replies.