Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mailer = Swift_Mailer::newInstance(
- Swift_SmtpTransport::newInstance('smtp.example.org', 25)
- );
- // NOTIFY=NEVER
- $mailer->registerPlugin(new DsnPlugin([new NotifyHandler('never')]));
- // --- OR ---
- // NOTIFY=SUCCESS,FAILURE
- $mailer->registerPlugin(new DsnPlugin([new NotifyHandler('success,failure')]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement