|
Nstiac - 2009-03-26 05:36:21
Hello Manuel,
I've managed to have your class working with yahoo, gmail, and standard pop3 accounts.
Yet, since the begining of the year, Hotmail has allowed accounts from spain, uk, and most europe (if you create a new account and set your address & country to be spain or uk) to use it freely with pop3 standards.
I've managed to read my emails from hotmail no problem, but if i tryo to send a message through smtp.live.com it just wont work..
Config:
pop3.live.com
port 995 ssl
smtp.live.com
port 25 or 587! ssl
It works on outlook express as a normal pop3 account.
i've tried every setting possible but as far as i can get is to the 250 OK response from the smtp server without activating the SSL option to 1, if i activate ssl it just won work..
== SSL=1
Resolving SMTP server domain "smtp.live.com"...
Connecting to host address "65.55.172.254" port 587...
Error: it was not previously established a SMTP connection
== SSL=0
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-SMTP79.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.2668 ready at Wed, 25 Mar 2009 22:27:26 -0700
C EHLO localhost
S 250-BLU0-SMTP79.blu0.hotmail.com Hello [69.10.136.219]
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
Error: it was not previously established a SMTP
.... i've tried connecting through telnet and if i try to give it an AUTH LOGIN command it responds to use STARTTLS first...
I even tried changing the ssl:// to tls:// on the smtp.php class with no success (just a post i read somewhere about having to use tls:// instead of ssl:// on the 587 port).
Perhaps you can give it a try and figure out how to make it work.
Best regards,
P.S.- if you need a testing hotmail account, let me know.
Manuel Lemos - 2009-03-28 02:09:44 - In reply to message 1 from Nstiac
It seems that Hotmail requires TLS to be started after the connection is already established. It can be done in PHP but it needs work in the SMTP class. I will take a look over the weekend and will publish a new version as soon as I have TLS support enabled. Please be patient.
Nstiac - 2009-04-04 22:39:47 - In reply to message 2 from Manuel Lemos
Hello Manuel,
Sorry i've been away. I'd like to thank you for taking the time to check on this.
I'm looking forward to hear from you.
Cheers,
Nstiac - 2009-04-11 07:33:10 - In reply to message 2 from Manuel Lemos
Hello Manuel,
Have you had any luck looking into the hotmail issue ?
Best regards,
Manuel Lemos - 2009-04-11 23:06:40 - In reply to message 4 from Nstiac
Yes, I just did not have had time to update and the MIME message class too to upload all at once. I will do it later.
Chupamela - 2009-04-20 12:44:34 - In reply to message 5 from Manuel Lemos
Hello.
I also need to send emails from my Hotmail account through PHP. I hope that you can implement this class soon.
Greetings.
Manuel Lemos - 2009-04-20 20:02:18 - In reply to message 6 from Chupamela
Nstiac - 2009-04-22 16:23:59 - In reply to message 7 from Manuel Lemos
Hello Manuel,
Thank's a million!!!! it works amnazingly!!!! now i'm able to send email from ALL major providers aswell as anyother standard POP3 service.
I had to rebuild to use php 5 that's why it took me some time to test it back.
Once again thank you for sharing your superb knowledge with us!!!!
Best regards & my deepest respect.
Chupamela - 2009-04-23 02:40:27 - In reply to message 7 from Manuel Lemos
I have ready it, but I cannot connect to Hotmail with these SMTP & SASL class... Can you give me an example, please?
I try with test_smtp file:
$smtp->host_name="smtp.live.com";
$smtp->host_port=587; /*Or port 25... same results*/
$smtp->ssl=0;
$smtp->start_tls=1;
$smtp->localhost="localhost";
$smtp->direct_delivery=0;
$smtp->timeout=10;
$smtp->data_timeout=0;
$smtp->debug=1;
$smtp->html_debug=1;
$smtp->pop3_auth_host="pop3.live.com";
$smtp->user="email@hotmail.com";
$smtp->realm="email@hotmail.com";
$smtp->password="my_password";
$smtp->workstation="";
$smtp->authentication_mechanism="";
I change pop3 port to 995, and with $smtp->ssl=1; I can connect to POP3 and it say that I have X emails in my box. But it cannot connect to SMTP server: "Cound not send the message to email@hotmail.com. Error: could not connect to the host "smtp.live.com": Connection refused"
And with $smtp->ssl=0; it say: "Cound not send the message to email@hotmail.com. Error: it was not possible to read line from the SMTP server: data access time out"
With empty pop3_auth_host: "Cound not send the message to daizgran@hotmail.com. Error: could not connect to the host "smtp.live.com": Connection refused"
Where is my configuration error?
Thanks you very much for your help.
Manuel Lemos - 2009-04-23 02:56:35 - In reply to message 9 from Chupamela
Keep the pop3_auth_host variable empty. Your script configuration must look like this:
require("smtp.php");
require("sasl.php");
$from="your@address.here";
$to="destination@address.here";
$smtp=new smtp_class;
$smtp->host_name="smtp.live.com";
$smtp->host_port=587;
$smtp->start_tls=1;
$smtp->timeout=60;
$smtp->user="your_hotmail_account@hotmail.com";
$smtp->password="you_hotmail_password";
|