So you know, I tried to send a delivery with following settings and it went well as expected:
$smtp->host_name="smtp.live.com";
$smtp->host_port=587;
$smtp->ssl=0;
$smtp->start_tls=1;
$smtp->user="
[email protected]";
$smtp->realm="";
$smtp->password="somepassword";
Resolving SMTP server domain "smtp.live.com"...
Connecting to host address "65.55.176.126" port 587...
Connected to SMTP server "smtp.live.com".
S 220 BLU436-SMTP259.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.9200.16384 ready at Tue, 14 Oct 2014 15:26:01 -0700
C EHLO localhost
S 250-BLU436-SMTP259.smtp.hotmail.com Hello [187.39.26.226]
S 250-TURN
S 250-SIZE 41943040
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
C STARTTLS
S 220 2.0.0 SMTP server ready
Starting TLS cryptograpic protocol
TLS started
C EHLO localhost
S 250-BLU436-SMTP259.smtp.hotmail.com Hello [187.39.26.226]
S 250-TURN
S 250-SIZE 41943040
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-AUTH LOGIN PLAIN XOAUTH2
S 250 OK
C AUTH LOGIN
S 334 XXXXXXXXXXXX
C YYYYYYYYYYYYYYYYYYYYYYYYY==
S 334 ZZZZZZZZZZZZ
C WWWWWWWWWWWWWWWW=
S 235 2.7.0 Authentication succeeded
C MAIL FROM:<
[email protected]>
C RCPT TO:<
[email protected]>
C DATA
S 250 2.1.0
[email protected] OK
S 250 2.1.5
[email protected]
S 354 Start mail input; end with <CRLF>.<CRLF>
C From:
[email protected]
To:
[email protected]
Subject: Testing Manuel Lemos' SMTP class
Date: Tue, 14 Oct 2014 19:26:00 BRT
C Hello
[email protected],
It is just to let you know that your SMTP class is working just fine.
Bye.
C
.
S 250 2.6.0 <
[email protected]> Queued mail for delivery
C QUIT
S 221 2.0.0 BLU436-SMTP259.smtp.hotmail.com Service closing transmission channel
Disconnected.
Message sent to
[email protected] OK.