PHP Classes

smtp.live.com refuses connection ????

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  PHP Mail Alternative ...  >  All threads  >  smtp.live.com refuses connection ????  >  (Un) Subscribe thread alerts  
Subject:smtp.live.com refuses connection ????
Summary:smtp.live.com refuses connection ????
Messages:9
Author:M F
Date:2013-05-29 00:43:42
Update:2013-06-03 12:59:28
 

  1. smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of M F M F - 2013-05-29 00:43:43
Hello,

Great script, but it seems that smtp.live.com refuses any connections. I have tried other scripts that also work well with TLS and Gmail, same result.

Any ideas?

Thanks !

  2. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-05-29 01:37:27 - In reply to message 1 from M F
Did you try using port 587?

  3. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of M F M F - 2013-05-29 01:53:32 - In reply to message 2 from Manuel Lemos
Hello,

Yes, tried all combinations:

Ports: 25, 465, 587
SSL/TLS/none

Seems smtp.live.com just refuses the connection on their end. I don't think it's the script, unless live now requires some token to validate a 'device' of sorts...

  4. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-05-29 02:21:49 - In reply to message 3 from M F
You may be blocked by a firewall in the network that you are sending the message from.

  5. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of M F M F - 2013-05-30 02:13:09 - In reply to message 4 from Manuel Lemos
Hello,

Actually Microsoft responded to my question:

Quoted:
If you don't send the second hello after STARTTLS, the connection will fail before authentication takes place.

Does this makes sense?

Where in the class should I be looking at ?

Thank you.


  6. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of M F M F - 2013-05-30 11:01:53 - In reply to message 4 from Manuel Lemos
No, no firewall, works fine with Gmail.

  7. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-05-31 15:32:51 - In reply to message 5 from M F
You can set the class variable smtp_start_tls to 1.

  8. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of M F M F - 2013-06-01 13:35:54 - In reply to message 7 from Manuel Lemos
Hello,

Yes I did set the start tls voption.

Microsoft claims an additional step:

"If you don't send the second hello after STARTTLS, the connection will fail before authentication takes place."

A second Hello?

But I really don't have time to troubleshoot this, and I pretty much gave up sending via hotmail/outlook.

Thanks for the help.

As I said the class works marvellously with Gmail.


  9. Re: smtp.live.com refuses connection ????   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-06-03 12:59:28 - In reply to message 8 from M F
If you enabled debug support you can see that after the STARTTLS command, the communication is restarted with a new EHLO command. So that should not be your problem.