WordPress.org

Ready to get started?Download WordPress

Forums

WP SMTP Config
Bug in SMTP Port Change (3 posts)

  1. nickohrn
    Member
    Posted 2 years ago #

    There is a bug in the plugin when attempting to change the port used for sending email. Currently, line 18 reads as follows:

    if (defined('WP_SMTP_PORT') && is_int(WP_SMTP_USER)) {

    It needs to be changed to read as follows:

    if (defined('WP_SMTP_PORT') && is_int(WP_SMTP_PORT)) {

    I can submit an SVN patch if you'd like, but I believe this should be sufficient to fix the problem.

    http://wordpress.org/extend/plugins/wp-smtp-config/

  2. per4mance
    Member
    Posted 2 years ago #

    Thanks for the bug, but the plugin does not work for me.

    I try to send emails over my Google account but it is not possible. Any ideas for me?

  3. nickohrn
    Member
    Posted 2 years ago #

    If you're trying to configure it to send through GMail, you probably need to do something like the following. It works for me:

    define('WP_SMTP_HOST', 'smtp.gmail.com');
    define('WP_SMTP_PORT', 587);                   // obligatory - default: 25
    define('WP_SMTP_ENCRYPTION', 'tls');                // obligatory: 'tls' or 'ssl' - default: no encryption
    define('WP_SMTP_USER', 'YOUR_EMAIL_ADDRESS_HERE');           // obligatory - default: no user
    define('WP_SMTP_PASSWORD', 'YOUR_EMAIL_PASSWORD_HERE');           // obligatory - default: no password

    That along with the code change I outlined above should be sufficient to send email via Google. It works for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic