When I use this code for my file testEmail1.php:
Code: Select all
require_once ("swift/lib/Swift.php");
require_once ("swift/lib/Swift/Connection/Sendmail.php");
$swift =& new Swift(new Swift_Connection_NativeMail());
//Create the message
$message =& new Swift_Message("My subject Native", "My body");
//Now check if Swift actually sends it
if ($swift->send($message, "Address@Todomain.com", "Address@Fromdomain.com")) echo "Sent";
else echo "Failed";Now when I use this code for my file testEmail2.php
Code: Select all
require_once ("swift/lib/Swift.php");
require_once ("swift/lib/Swift/Connection/Sendmail.php");
//Start Swift
$swift =& new Swift(new Swift_Connection_Sendmail(SWIFT_SENDMAIL_AUTO_DETECT));
//Create the message
$message =& new Swift_Message("My subject", "My body");
//Now check if Swift actually sends it
if ($swift->send($message, "im_chaz@rocketmail.com", "webmaster@isceca.com")) echo "Sent";
else echo "Failed";http://www.swiftmailer.org/wikidocs/v3/ ... s/sendmail
..and my test script testEmail2.php is still reacts the same. Any ideas? The browsers does not timeout it continues to act like its loading the page or awaiting a response somehow and I have to manually stop the page.
Thanks.