Created
March 25, 2010 03:57
-
-
Save scottharvey/343154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
Mailer.deliver_mailout(:mailing_id => mailing.id) unless mailing.sent_at | |
mailing.sent! | |
rescue Net::SMTPFatalError => e | |
mailing.report_failure(e) | |
mailing.destroy | |
rescue Net::SMTPSyntaxError => e | |
mailing.report_failure(e) | |
mailing.subscriber.destroy | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment