PHP Classes

problem with hotmail accounts

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  problem with hotmail accounts  >  (Un) Subscribe thread alerts  
Subject:problem with hotmail accounts
Summary:cant make it work with hotmail, though it's supposed to work...
Messages:25
Author:Nstiac
Date:2009-03-26 05:36:21
Update:2010-02-19 06:38:46
 
  1 - 10   11 - 20   21 - 25  

  11. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Chupamela Chupamela - 2009-04-23 12:35:03 - In reply to message 10 from Manuel Lemos
With this latter configuration:

Resolving SMTP server domain "smtp.live.com"...
Connecting to host address "65.55.172.254" port 587...
Cound not send the message to email@hotmail.com. Error: could not connect to the host "smtp.live.com": Connection refused


I don't know what I can do... :S

  12. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Nstiac Nstiac - 2009-04-23 17:12:26 - In reply to message 11 from Chupamela
1st. Be sure to have the latest class files.

2nd. Connection refused means hotmail is refusing your connection, try:
"telnet smtp.live.com 587" from your server (shell), you should see:
Trying 65.55.172.254...
Connected to smtp.live.com (65.55.172.254).
Escape character is '^]'.
220 BLU0-SMTP78.blu0.hotmail.com Microsoft ESMTP MAIL Service,

If you dont get the above, then probably you either have your ports blocked or your ip has been blcoked by smtp.live.com.

If you do receive the Connected to.., then it's your smtp config, try this:

$smtp->localhost="localhost";
$smtp->smtp_host="smtp.live.com";
$smtp->smtp_port=587;
$smtp->smtp_start_tls=1;
$smtp->smtp_direct_delivery=0;
$smtp->smtp_exclude_address="";
$smtp->smtp_user="user@hotmail.com";
$smtp->smtp_password="xxxxxxxx";
$smtp->smtp_pop3_auth_host="";
$smtp->smtp_realm="";
$smtp->smtp_workstation="";
$smtp->smtp_authentication_mechanism="";
$smtp->smtp_debug=0;
$smtp->smtp_html_debug=1;


  13. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-23 19:10:27 - In reply to message 11 from Chupamela
It is possible that your network is blocking that port. Hotmail provides both 25 and 587 as alternative ports. Ask your network administrator if both ports are blocked.

  14. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Chupamela Chupamela - 2009-04-23 20:02:21 - In reply to message 12 from Nstiac
I have the last class: "smtpclass-2009-04-11".

Yes, I can connect from my server using telnet to smtp.live.com (port 25 and 587). But by that script is not possible...

I am using the test script by changing the settings as you told me.

  15. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-23 20:18:32 - In reply to message 14 from Chupamela
There is nothing wrong with the class because many people are using it to send messages via Hotmail, so the problem is in your environment.

Can you set the debug variable to 1 and show the output of the class when it attempts to send the message?

  16. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of vignesh vignesh - 2009-05-06 05:35:20 - In reply to message 15 from Manuel Lemos
Hi.. I have configured as specified.. but am getting the following..

Resolving SMTP server domain "smtp.live.com"...
Connecting to host address "65.55.172.254" port 587...
Connected to SMTP server "smtp.live.com".
S 220 BLU0-SMTP101.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.2668 ready at Tue, 5 May 2009 22:20:57 -0700
C EHLO localhost
S 250-BLU0-SMTP101.blu0.hotmail.com Hello [200.32.8.145]
S 250-TURN
S 250-SIZE 35840000
S 250-ETRN
S 250-PIPELINING
S 250-DSN
S 250-ENHANCEDSTATUSCODES
S 250-8bitmime
S 250-BINARYMIME
S 250-CHUNKING
S 250-VRFY
S 250-TLS
S 250-STARTTLS
S 250 OK
Cound not send the message to vigneshsingaravelu@hotmail.com. Error: this PHP installation or version does not support starting TLS

Please let me know soon..
Am waiting for your reply.. Can you help...

  17. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-05-06 07:08:16 - In reply to message 16 from vignesh
Hotmail requires starting TLS after the connection is already established. That requires using at least PHP 5.1 and having the OpenSSL extension installed. At least one of those conditions is not true.

Read this article for more details:

phpclasses.org/blog/package/9/post/ ...

  18. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of vignesh vignesh - 2009-05-06 13:07:51 - In reply to message 17 from Manuel Lemos
Hi.. Thanks for your reply... Is there any way to send mail("with hotmail") using CURL and not using PHPmailer and no SMTP.. Please let me know.. waiting for your reply..

  19. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-05-07 00:46:19 - In reply to message 18 from vignesh
Yes, it can be done using HTTP requests but it is not trivial.

Anyway, you may want to try this HTTP client class and let me know if you have difficulties:

phpclasses.org/httpclient

  20. Re: problem with hotmail accounts   Reply   Report abuse  
Picture of 121212 121212 - 2009-11-26 10:33:45 - In reply to message 11 from Chupamela
The class is perfect whit TLS enabled, but i need to send emails to multiple mail addresses. How can i do it?

 
  1 - 10   11 - 20   21 - 25