Sha256: 328cf47b2722290d6f958a1024b56fed7d17333cff40bf64a8e5d6d7ffb829f5
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
module AlchemyCrm class BounceReceiver < ActionMailer::Base def receive(email) return unless email.content_type == "multipart/report" bounce = BouncedDelivery.from_email(email) recipient = Recipient.find_by_message_id(bounce.original_message_id) recipient.bounced = (bounce.status == "Failure") recipient.save! end end end
Version data entries
5 entries across 5 versions & 1 rubygems