Categories

Configure SMTP

Author: Scott Reilly
Version: 3.5
First released: 2009-06-15
Last update: 2024-07-22
Compatibility: WP 5.5 – 6.5.5
Download: [ zip ]
Description:

Configure SMTP mailing in WordPress, including support for sending email via SSL/TLS (such as Gmail).

Extended Description

Configure SMTP mailing in WordPress, including support for sending email via SSL/TLS (such as Gmail).

This plugin is the official successor to the original SMTP plugin for WordPress (wpPHPMailer).

Use this plugin to customize the SMTP mailing system used by default by WordPress to handle outgoing emails. It offers you the ability to specify:

  • SMTP host name
  • SMTP port number
  • If SMTPAuth (authentication) should be used
  • SMTP username
  • SMTP password
  • If the SMTP connection needs to occur over ssl or tls

In addition, you can instead indicate that you wish to use Gmail to handle outgoing email, in which case the above settings are automatically configured to values appropriate for Gmail, though you’ll need to specify your Gmail email address (including the “@gmail.com”) and password.

Regardless of whether SMTP is enabled, the plugin provides you the ability to define the name and email of the ‘From:’ field for all outgoing emails.

A simple test button is also available that allows you to send a test email to yourself to check if sending email has been properly configured for your site.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Find out more at the plugin’s WordPress Plugin Repository page.

Screenshots

Click to see full-size image.

  1. A screenshot of the plugin's admin settings page.

    A screenshot of the plugin’s admin settings page.

Installation

  1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting.
  2. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  3. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  4. Go to “Settings” -> “Configure SMTP” and configure the plugin’s settings. (You can also use the “Settings” link in the plugin’s entry on the admin “Plugins” page).
  5. (Optional.) Use the built-in test tool (also located on the plugin’s settings page) to see if your blog can properly send out emails.

Release Log

3.2 (2016-11-14)

  • New: Add unit tests.
  • Change: Handle ‘Send email via Gmail?’ checkbox changes with JS event listener rather than explicit ‘onclick’.
  • Change: Move JS into file and enqueue rather outputting directly into footer.
  • Change: Update plugin framework to 045. (Too many changes to list.)
  • Change: Improve singleton implementation.
    • Add get_instance() static method for returning/creating singleton instance.
    • Make static variable ‘instance’ private.
    • Make constructor protected.
    • Make class final.
    • Additional related changes in plugin framework (protected constructor, erroring __clone() and __wakeup()).
  • Change: Cast submitted ‘smtp_auth’ (bool), ‘port’ (int), and ‘wordwrap’ (int) values to proper type before use.
  • Change: Verify submitted ‘smtp_secure’ value is one of the viable options.
  • New: Add class constant SETTING_NAME (to store setting name) and use it in uninstall().
  • Change: Remove pre-WP3.2-only JavaScript code.
  • Change: Use explicit path when requiring plugin framework.
  • Fix: Explicitly declare activation() and uninstall() static.
  • Fix: For options_page_description(), match method signature of parent class.
  • Change: Add support for language packs:
    • Set textdomain using a string instead of a variable.
    • Remove .pot file and /lang subdirectory.
  • Change: Discontinue use of PHP4-style constructor.
  • Change: Prevent execution of code if file is directly accessed.
  • Change: Minor code reformatting (spacing, bracing, conditional comparison order).
  • Change: Minor documentation reformatting (spacing, punctuation).
  • Change: Re-license as GPLv2 or later (from X11).
  • New: Add ‘License’ and ‘License URI’ header tags to readme.txt and plugin file.
  • New: Add LICENSE file.
  • New: Add empty index.php to prevent files from being listed if web server has enabled directory listings.
  • Change: Use ’email’ instead of ‘e-mail’ on-screen and in documentation.
  • Change: Use ‘Gmail’ instead of ‘GMail’ on-screen and in documentation.
  • Change: Remove file-ending PHP close tag.
  • Change: Reformat plugin header.
  • Change: Note compatibility through WP 4.7+.
  • Change: Dropped compatibility with version of WP older than 4.2.
  • Change: Update donate link.
  • Change: Update copyright date (2017).

3.1

  • Add new debugging configuration option
  • Fix bug that resulted from WP 3.2’s update to a new phpmailer
  • Fix bug with checking ‘Use GMail?’ did not auto-reset settings accordingly (jQuery bug regarding .attr() vs .prop() introduced in jQ 1.6 in WP 3.2)
  • Fix to call add_filter() instead of add_action() for ‘wp_mail_from’ (props Callum Macdonald)
  • Fix to call add_filter() instead of add_action() for ‘wp_mail_from_name’
  • Store error messages for later display rather than immediately outputting (too early)
  • Save a static version of itself in class variable $instance
  • Deprecate use of global variable $c2c_configure_smtp to store instance
  • Add explicit empty() checks in a couple places
  • Delete plugin settings on uninstallation
  • Add __construct(), activation(), and uninstall()
  • Add more FAQ questions
  • Regenerate .pot
  • Update plugin framework to version 023
  • Note compatibility through WP 3.2+
  • Drop compatibility with versions of WP older than 3.0
  • Explicitly declare all functions as public and class variables as private
  • Minor code formatting changes (spacing)
  • Update copyright date (2011)
  • Add plugin homepage and author links in description in readme.txt

Copyright & Disclaimer

Copyright © 2009-2025 by Scott Reilly (aka coffee2code)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Discussion / Support

Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.

Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.

Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.

25 replies on “Configure SMTP”

[…] Configure SMTP If your web host doesn’t support PHP Sendmail or disables it for security reasons, and you have a secure SMTP setup, you will need this. It allows you to configure WordPress to use your secure SMTP server to send automatic WordPress emails to you or your readers. […]

[…] iPlode is constantly progressing. Now it is possible to save and load games. Only thing missing for the first release is the “New Game” dialogue. So I thought it is time to continue the work on the infrastructure. And to enable a nice discussion between the mass of iPlode users to come there is a Forum available now. Used PlugIns: WP-Forum Configure SMTP […]