Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Repository files navigation

Sespool Build Status

Bounce parser for Amazon SES SNS notifications. Currently only supports JSON.

Usage

>> bounce=Sespool::Bounce.new("raw sns json request body")
>> bounce.type=>'Transient'
>> bounce.bounced_recipients.first.email_address=>'foo@example.com'
>> bounce.mail.message_id=>'123-456-789'

Example Integration

In a Rails app, you might want to setup your SES SNS bounces be be handled by something like the following:

classSnsController < ApplicationControllerdefbounce_notification# parse the SNS bounce JSONbounce=Sespool::Bounce.new(request.raw_post)# do something with it, probably persist itEmailBounce.create_from_sns_message(bounce)rendernothing: true,status: 204endend

About

Amazon SES SNS bounce parser

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages