Swift mailer failure notice is not functioning

Nisha Haridas's Avatar

Nisha Haridas

02 Aug, 2011 03:18 AM

Here my code:
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465,"ssl" )

     ->setUsername('[email blocked]')
    $mailer = Swift_Mailer::newInstance($transport);
    $message = Swift_Message::newInstance('Test Using SMTP')
      ->setFrom('[email blocked]')
      ->setBody('Here is the message itself')
                    '[email blocked]' => 'Receiver Name',
                    '[email blocked]' => 'A name',
                    '[email blocked]' => 'Nisha'

    //Send the message
    $failures = array();
    if (!$mailer->send($message, $failures))
      echo "Failures:";
        echo 'success';
  1. 1 Posted by Nicole on 02 Aug, 2011 02:46 PM

    Nicole's Avatar

    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.


  2. Nicole closed this discussion on 02 Aug, 2011 02:46 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? 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