Hotmail NOT accepting emails...
Posted: Fri Feb 09, 2007 9:15 pm
Hotmail won't accept my emails. This is getting quite annoying. The script will send emails to my other private email address not hosted by hotmail. Anyone see anything wrong?
This is the var dump
feyd | Made sea of text more legible.
Code: Select all
<?php
session_start();
require('Swift/Swift.php');
require('Swift/Swift/Connection/SMTP.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Email</title>
</head>
<body>
<?php
if ($_POST['send_email']) {
$to = $_POST['send_email'];
$swift = new Swift(new Swift_Connection_SMTP('SMTP.accesscomm.ca', '587'));
if ($swift->authenticate('lshaheen', '%%%%%')) {
$email = 'This is my super special email.';
$swift->setReplyTo('myotheremail@hotmail.com');
$swift->addPart($email, 'text/html');
$swift->send(
$to,
'proudly_canadian01@hotmail.com',
'Here is the super important email!');
var_dump($swift->transactions);
$swift->close();
} else {
echo "Could not authenticate";
}
} else {
echo "<form action='?' method='post'><input type='text' name='send_email' value='@hotmail.com'><input type='submit' value='Send Email'></form>";
}
?>
</body>
</html>Code: Select all
array(8)
{
[0]=> array(3)
{
["command"]=> string(0) ""
["time"]=> string(21) "0.89348300 1171077216"
["response"]=> string(82) "220 mailout1.accesscomm.ca ESMTP Access Communications outbound mail server, eh! "
}
[1]=> array(3)
{
["command"]=> string(23) "EHLO www.webdummy.net "
["time"]=> string(21) "0.91831300 1171077216"
["response"]=> string(265) "250-mailout1.accesscomm.ca Hello static24-72-67-145.regina.accesscomm.ca [24.72.67.145], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 31457280 250-DSN 250-AUTH DIGEST-MD5 CRAM-MD5 NTLM PLAIN LOGIN 250-DELIVERBY 250 HELP "
}
[2]=> array(3)
{
["command"]=> string(15) "AUTH CRAM-MD5 "
["time"]=> string(21) "0.93029400 1171077216"
["response"]=> string(66) "334 PDE2MDUyMTU1NDcuMTM0NDkyNTVAbWFpbG91dDEuYWNjZXNzY29tbS5jYT4= "
}
[3]=> array(3)
{
["command"]=> string(58) "bHNoYWhlZW4gYzdmNThhMGJlZWI3NTg2Y2RiMmZlMGZmZDFjYzY5Nzg= "
["time"]=> string(21) "0.93989300 1171077216"
["response"]=> string(28) "235 2.0.0 OK Authenticated "
}
[4]=> array(3)
{
["command"]=> string(45) "MAIL FROM: "
["time"]=> string(21) "0.96461300 1171077216"
["response"]=> string(57) "250 2.1.0 ... Sender ok "
}
[5]=> array(3)
{
["command"]=> string(43) "RCPT TO: "
["time"]=> string(21) "0.99269500 1171077226"
["response"]=> string(60) "250 2.1.5 ... Recipient ok "
}
[6]=> array(3)
{
["command"]=> string(6) "DATA "
["time"]=> string(21) "0.00688800 1171077227"
["response"]=> string(50) "354 Enter mail, end with "." on a line by itself "
}
[7]=> array(3)
{
["command"]=> string(907) "To: proudly_canadian01@hotmail.com
From: proudly_canadian01@hotmail.com
Reply-To:
Subject: Here is the super important email!
Date: Fri, 9 Feb 2007 21:13:40 -0600
X-Mailer: Swift 2.1.6 by Chris Corbyn
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="_=_swift-1785645cd3860eb7158.52947666"
Content-Transfer-Encoding: 8bit
This part of the E-mail should never be seen. If you are reading this, consider upgrading your e-mail client to a MIME-compatible client. --_=_swift-1785645cd3860eb7158.52947666
Content-Type: multipart/alternative; boundary="_=_swift-2533745cd3860eb7359.37314129"
--_=_swift-2533745cd3860eb7359.37314129
Content-Type: text/html; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 8bit
This is my super special email.
--_=_swift-2533745cd3860eb7359.37314129--
--_=_swift-1785645cd3860eb7158.52947666--
.
"
["time"]=> string(21) "0.01498300 1171077227"
["response"]=> string(56) "250 2.0.0 l1A3BUrl015529 Message accepted for delivery "
}
}