Swift mailer failure notice is not functioning
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';
Discussions are closed to public comments.
If you need help with Lighthouse please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
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.