Here my code:
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com',
465,"ssl" )
->setUsername('[email blocked]')
->setPassword('test');
$mailer = Swift_Mailer::newInstance($transport);
$message = Swift_Message::newInstance('Test Using SMTP')
->setFrom('[email blocked]')
->setBody('Here is the message itself')
->setTo(array(
'[email blocked]' => 'Receiver Name',
'[email blocked]' => 'A name',
'[email blocked]' => 'Nisha'
));
//Send the message
$failures = array();
if (!$mailer->send($message, $failures))
{
echo "Failures:";
print_r($failures);
}
else
echo 'success';
#1 Posted by Nicole on 02 Aug, 2011 02:46 PM
Is this something you are using with Lighthouse? This is the support forum for Lighthouse, a web application for tracking bugs/issues.
Let us know more about the problem and how it's affecting your integration with Lighthouse (if it is) and we'll be happy to continue troubleshooting.
Thanks,
Nicole
Nicole closed this discussion on 02 Aug, 2011 02:46 PM.