Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using WP-Mail-SMTP (http://wordpress.org/extend/plugins/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: pod51002.outlook.com

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:
bool(false)

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 wordpress.stackexchange.com Mar 29 '11 at 14:17

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

add comment

1 Answer

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 pod51002.outlook.com 587

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

x-wing-$: telnet pod51002.outlook.com 587
Trying 157.55.9.147...
Connected to pod51002.outlook.com.
Escape character is '^]'.
220 pod51002.outlook.com 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
add comment

Your Answer

 
discard

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.