Configure SMTP mailing in WordPress, including support for sending e-mail via SSL/TLS (such as GMail).
This plugin is the renamed, rewritten, and updated version of the wpPHPMailer plugin.
Use this plugin to customize the SMTP mailing system used by default by WordPress to handle outgoing e-mails. 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 e-mail, in which case the above settings are automatically configured to values appropriate for GMail, though you’ll need to specify your GMail e-mail (including the “@gmail.com”) and password.
Regardless of whether SMTP is enabled, the plugin provides you the ability to define the name and e-mail of the ‘From:’ field for all outgoing e-mails.
A simple test button is also available that allows you to send a test e-mail to yourself to check if sending e-mail has been properly configured for your blog.
/wp-content/plugins/directory (or install via the built-in WordPress plugin installer)
- Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Click the plugin’s
Settingslink next to its
Deactivatelink (still on the Plugins page), or click on the
SMTPlink, to go to the plugin’s admin settings page. Optionally customize the settings (to configure it if the defaults aren’t valid for your situation).
- (optional) Use the built-in test to see if your blog can properly send out e-mails.
- I am already able to receive e-mail sent by my blog, so would I have any use or need for this plugin?
Most likely, no. Not unless you have a preference for having your mail sent out via a different SMTP server, such as GMail.
- How do I find out my SMTP host, and/or if I need to use SMTPAuth and what my username and password for that are?
Check out the settings for your local e-mail program. More than likely that is configured to use an outgoing SMTP server. Otherwise, contact your host or someone more intimately knowledgeable about your situation.
- I’ve sent out a few test e-mails using the test button after having tried different values for some of the settings; how do I know which one worked?
If your settings worked, you should receive the test e-mail at the e-mail address associated with your WordPress blog user account. That e-mail contains a time-stamp which was reported to you by the plugin when the e-mail was sent. If you are trying out various setting values, be sure to record what your settings were and what the time-stamp was when sending with those settings.
- Why am I getting this error when attempting to send a test message: `SMTP Error: Could not connect to SMTP host.`?
There are a number of reasons you could be getting this error:
- You have supplied incorrect server settings (hostname, port number, secure protocol type).
- What am I getting this error: `SMTP Error: Could not authenticate.`?
The connection to the SMTP server was successful, but the credentials you provided (username and/or password) are not correct.
does exactly what it says. Been working like a charm
We have a domain on which we deployed Configure SMTP to send out emails of the Inquiry / Contact Form. Just after configuration by sending out a Test Email, it shows error “An error was encountered while trying to send the test e-mail.
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting”
Looking forward for your Expert Comments / Inputs / Solution.
After weeks of testing and trying different fixes for my email problem this little plugin had the issue resolved in 10 minutes. Thank you so much for this miracle fix. Wish I would have tried it first.
Despite no recent updates on this plugin, really works fine! Specially usefull on web hosting providers with bad email service infrastructure, this plugin will help.
A simple plugin that ends nicely all wp_mail() or mail() problems.
Working flawlessly with WP 4.3.1.
Thanks a lot!
Configure SMTP is essential in all our installs and is always set up right away with every new deployment we make!
I hope to see updates to this fine Plugin if requirements happen to be modified one day and necessiate any changes…
Contributors & Developers
“Configure SMTP” is open source software. The following people have contributed to this plugin.Contributors
- 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
- Update plugin framework to 017 to use password input field instead of text field for SMTP password
- Re-implementation by extending C2C_Plugin_016, which among other things adds support for:
- Reset of options to default values
- Better sanitization of input values
- Offload of core/basic functionality to generic plugin framework
- Additional hooks for various stages/places of plugin operation
- Easier localization support
- Add error checking and reporting when attempting to send test e-mail
- Don’t configure the mailer to use SMTP if no host is provided
- Fix localization support
- Store plugin instance in global variable, $c2c_configure_smtp, to allow for external manipulation
- Rename class from ‘ConfigureSMTP’ to ‘c2c_ConfigureSMTP’
- Remove docs from top of plugin file (all that and more are in readme.txt)
- Note compatibility with WP 3.0+
- Minor tweaks to code formatting (spacing)
- Add Upgrade Notice section to readme.txt
- Add PHPDoc documentation
- Add package info to top of file
- Update copyright date
- Remove trailing whitespace
- Update screenshot
- Update .pot file
- Fix to prevent HTML entities from appearing in the From name value in outgoing e-mails
- Added full support for localization
- Added .pot file
- Noted that overriding the From e-mail value may not take effect depending on mail server and settings, particular if SMTPAuth is used (i.e. GMail)
- Changed invocation of plugin’s install function to action hooked in constructor rather than in global space
- Update object’s option buffer after saving changed submitted by user
- Miscellaneous tweaks to update plugin to my current plugin conventions
- Noted compatibility with WP2.9+
- Dropped compatibility with versions of WP older than 2.8
- Updated readme.txt
- Updated copyright date
- Now show settings page JS in footer, and only on the admin settings page
- Removed hardcoded path to plugins dir
- Changed permission check
- Minor reformatting (added spaces)
- Tweaked readme.txt
- Removed compatibility with versions of WP older than 2.6
- Noted compatibility with WP 2.8+
- Added support for GMail, including configuring the various settings to be appropriate for GMail
- Added support for SMTPSecure setting (acceptable values of ”, ‘ssl’, or ‘tls’)
- Added “Settings” link next to “Activate”/”Deactivate” link next to the plugin on the admin plugin listings page
- Tweaked plugin’s admin options page to conform to newer WP 2.7 style
- Tweaked test e-mail subject and body
- Removed the use_smtp option since WP uses SMTP by default, the plugin can’t help you if it isn’t using SMTP already, and the plugin should just go ahead and apply if it is active
- Updated description, installation instructions, extended description, copyright
- Extended compatibility to WP 2.7+
- Facilitated translation of some text
- Fixed bug where specified wordwrap value wasn’t taken into account
- Initial release after rewrite from wpPHPMailer
- Earlier versions of this plugin existed as my wpPHPMailer plugin, which due to the inclusion of PHPMailer within WordPress’s core and necessary changes to the plugin warranted a rebranding/renaming.