Test works but not script!????
Posted: Thu Apr 19, 2007 1:24 pm
Hi everyone,
I installed Swift and ran the Smoke test and it worked perfectly.
But the scripts I try do not!
Here is one example that is not working and giving me NO ERRORS:
How can I find out what is going on?
Thank you.
I installed Swift and ran the Smoke test and it worked perfectly.
But the scripts I try do not!
Here is one example that is not working and giving me NO ERRORS:
Code: Select all
ini_set('display_errors', '1');
error_reporting(E_ALL);
require("mailIT/Swift.php"));
require("mailIT/Swift/Connection/SMTP.php");
//Start Swift
$smtp =& new Swift_Connection_SMTP("smtp.domain.com");
$smtp->setUsername("USER");
$smtp->setPassword("PWD");
$swift =& new Swift($smtp);
$message =& new Swift_Message("Some subject", "Your message <u>here</u>", "text/html");
if ($swift->send($message, "email@email.com", "email@email.com"))
{
echo "Message sent";
}
else
{
echo "Message failed to send";
}How can I find out what is going on?
Thank you.