Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using WP-Mail-SMTP (

I want to use this plugin (or another plugin) to send mail from Outlook Web App's SMTP.

I used these setting:

From Email: noreply@xxx.xx

From Name: Noreply

Mailer: Send all WordPress emails via SMTP.

SMTP Host:

SMTP Port: 587

Authentication: Use TLS encryption.

Username: xxx@xxx.xx

Password: xxx

When I send a test email I recieve this error:

Test Message Sent

The result was:

The full debugging output is shown below:
object(PHPMailer)#6049 (45) {
   ...long list...

The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: No route to host (113)

What am I doing wrong???

share|improve this question

migrated from Mar 29 '11 at 14:17

This question came from our site for WordPress developers and administrators.

up vote 0 down vote accepted

The problem sounds like your host is blocking the outgoing port. If you have access to the shell or ssh command line you can test the connection to the mail server using telnet.

 telnet 587

It should return something like this: (use control ] to quit after you connect)

x-wing-$: telnet 587
Connected to
Escape character is '^]'.
220 Microsoft ESMTP MAIL Service ready at Tue, 29 Mar 2011 09:58:16 +0000
telnet> quit
Connection closed.

If it fails then you need to contact your host to have them open up the port.

share|improve this answer
I have send the question to my hosting provider. – Josjojo Mar 29 '11 at 11:24
I have contacted my hosting provider. They indeed block port number 587. I think that I can't work with this mailhost on my website. – Josjojo Apr 1 '11 at 8:38
They wont open it up for you? I had the same problem with my VPS and my host opened the port for me. – Chris_O Apr 1 '11 at 13:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.