If you get the error – Unable to find the socket transport “tls” when trying this, you might also see the message: Did you forget to enable it when you configured PHP?

The quick answer is YES you did. You will need to edit your PHP.ini file which you should find in the root folder of your PHP install, in my case c:\Program Files\PHP

Edit this file and search for the text OPENSSL.dll, uncomment this line (a comment is a ; so just delete it) I restarted my server to restart the PHP service (there might be a better way of doing this without restarting the server, but I couldn’t be botherd to search for a solution).

WP Mail SMTP settings for GMail
WP Mail SMTP settings for GMail

I’m using the latest WordPress 2.8 (as of June 2009). I’m trying to get it to send email from posts and forms to send through my GMail account. How do I do this?

Getting this to work is stonking. It means you can have the google servers send email for you from anywhere in the World and not being tied to any particular ISP you can change the hosting for your blog without making any changes to your setup. Perfect for the traveling blogger or blogger-on-the-run.

First you need to work with this plug-in, it’s easy to setup and works a treat. You can download it from here:¬† http://wordpress.org/extend/plugins/wp-mail-smtp/

Once you have that installed and activated (I activated this plug-in and got an error message which I refreshed the page and it then seemed ok)

Next I filled in the correct details but on sending a test email I got the¬†error: Unable to find the socket transport “tls” – did you forget to enable it when you configured PHP?

Which I fixed by just uncommenting the OPENSSL.dll line in PHP.ini

I had some useful help from here: http://www.phpbb.com/community/viewtopic.php?f=64&t=527077

Many thanks, it set me in the right direction.

Sci-Fi Si.


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>