Using WordPress With External SMTP Server

If you have a self-hosted WordPress blog and your blog is having problems sending emails then here is a solution, WordPress offers support to send email through external SMTP servers instead of local mailer. Here is a simple solution for it:

In /wp-includes/pluggable.php around line 377, change
$phpmailer->isMail();

to
$phpmailer->isSMTP();

Then, in /wp-includes/class-phpmailer.php around line 155, set your SMTP host:
var $Host = "my.smtphost.com";

You may also need to set a username and password, and tell WP to attempt authentication. You'll see those in the lines below the hostname variable.
var $SMTPAuth = true;

var $Username = "username";

var $Password = "password";

On the other hand, you could do this via a plugin, perhaps even Callum McDonald's WP Mail SMTP.

I found this soloution here

Tags:

Subscribe to PlanetMaks

PlanetMaks updated regularly with content related to news, tutorials, downloads and many resources. If you don't want to miss out on future posts, you can subscribe by RSS or email.

More in Wordpress

Related Posts

Most Popular in "Wordpress"