Code: Select all
<?php
require_once('inc/Swift.php');
require_once('inc/debuglib.php');
require_once('inc/Swift/Connection/Sendmail.php');
$connection = new Swift_Connection_Sendmail;
$swift = new Swift($connection);
$swift->autoFlush(false);
if ($swift->isConnected()) {
echo "<h1>CONNECTED</h1>";
$swift->addPart("This is the HTML Email", 'text/html');
$swift->addPart("This is the Plaintext Email");
$swift->send(
array(
array("nick","nickvd@gmail.com"),
array("bob","ecompulab3@westniagara.com")
),
"webmaster@whyallthetrouble.com",
'This is an email test, why does it hang?'
);
}
dump($swift->transactions);
dump($swift->errors);
?>The page displays everything until the last transaction message:
Code: Select all
time 0.29318100 1161787324
response 250 2.0.0 k9PEg1TI020529 Message accepted for delivery