Skip to content

An on-demand check of recently bounced emails delivered from SparkPost.

License

Notifications You must be signed in to change notification settings

cityssm/sparkpost-bounce-check

Repository files navigation

SparkPost Bounce Check

Codacy Badge Maintainability Snyk Vulnerabilities for GitHub Repo

Bouncing Envelope

An on-demand check of recently bounced emails delivered from SparkPost (now MessageBird Email).

Getting Started

This application requires the NodeJS Javascript runtime.

  • Clone the repository, or download the latest release

  • Run npm install to get the dependencies

  • Copy configSample.js to config.js

  • Open config.js and update the sparkPostApiKey

  • Run npm start

Sample Output

[
  {
    "timestamp": "2023-03-24T13:14:25.000Z",
    "message_id": "1234abcd5678efgh9012",
    "rcpt_to": "bad_email@example.com",
    "subject": "Super Important Newsletter",
    "bounce_class": "22",
    "error_code": "552",
    "raw_reason": "552 5.2.2 <bad_email@example.com>: user is over quota"
  }
]

Helpful Links

SparkPost Bounce Classification Codes

SparkPost Status