├── .gitignore ├── .jshintrc ├── LICENSE ├── README.md ├── cURL ├── deleteRecipientList.txt ├── deleteSuppressionlistByEmail.txt ├── getMetricsCountOfDeliveriesGroupedByAttempt.txt ├── getMetricsDataForKnownCampaigns.txt ├── getMetricsDataForKnownDomains.txt ├── getMetricsDeliverabilityByCampaign.txt ├── getMetricsDeliverabilityByDomain.txt ├── getMetricsDeliverabilityLinks.txt ├── getMetricsDeliverabilitySummary.txt ├── getMetricsOrderedByTimeSeries.txt ├── getMetricsSpecificToBounceEventsGroupedByBounceClassification.txt ├── getMetricsSpecificToBounceEventsGroupedByBounceReason.txt ├── getMetricsSpecificToDelayEventsGroupedByDelayReasons.txt ├── getMetricsSpecificToEngagementEventsGroupedByLinkName.txt ├── getMetricsSpecificToRejectionEventsGroupedByRejectionReasons.txt ├── getRecipientLists.txt ├── getSuppressionList.txt ├── getSuppressionListCheckRecipientSuppressionStatus.txt ├── postRecipientList.txt ├── postTransmission.txt ├── postTransmissionWithTemplate.txt ├── putSuppressionList.txt └── putSuppressionListByRecipient.txt └── snippets ├── SMTP ├── smtp_example.cs ├── smtp_example.js ├── smtp_example.php ├── smtp_example.pl └── smtp_example.py ├── recipient-validation ├── Pipfile ├── README.md ├── VB │ └── validateRecipient.vb ├── ValidateRecipient.java ├── c │ └── validateRecipient.cpp ├── package-lock.json ├── package.json ├── recipient-validation-dev-1.rockspec ├── recipient-validation.csproj ├── rust_recipient_validation │ ├── Cargo.lock │ ├── Cargo.toml │ └── src │ │ └── main.rs ├── validateRecipient.cs ├── validateRecipient.ex ├── validateRecipient.go ├── validateRecipient.js ├── validateRecipient.lua ├── validateRecipient.php ├── validateRecipient.pl ├── validateRecipient.py ├── validateRecipient.rb └── validateRecipient.sh ├── ruby └── ruby_attachment_example │ ├── README.md │ ├── SampleVoiceMail.eml │ ├── SampleVoiceMail.wav │ ├── encode.rb │ └── transmission.json └── webhook-table ├── fetch.js └── index.html /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/.jshintrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/README.md -------------------------------------------------------------------------------- /cURL/deleteRecipientList.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/deleteRecipientList.txt -------------------------------------------------------------------------------- /cURL/deleteSuppressionlistByEmail.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/deleteSuppressionlistByEmail.txt -------------------------------------------------------------------------------- /cURL/getMetricsCountOfDeliveriesGroupedByAttempt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsCountOfDeliveriesGroupedByAttempt.txt -------------------------------------------------------------------------------- /cURL/getMetricsDataForKnownCampaigns.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDataForKnownCampaigns.txt -------------------------------------------------------------------------------- /cURL/getMetricsDataForKnownDomains.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDataForKnownDomains.txt -------------------------------------------------------------------------------- /cURL/getMetricsDeliverabilityByCampaign.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDeliverabilityByCampaign.txt -------------------------------------------------------------------------------- /cURL/getMetricsDeliverabilityByDomain.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDeliverabilityByDomain.txt -------------------------------------------------------------------------------- /cURL/getMetricsDeliverabilityLinks.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDeliverabilityLinks.txt -------------------------------------------------------------------------------- /cURL/getMetricsDeliverabilitySummary.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsDeliverabilitySummary.txt -------------------------------------------------------------------------------- /cURL/getMetricsOrderedByTimeSeries.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsOrderedByTimeSeries.txt -------------------------------------------------------------------------------- /cURL/getMetricsSpecificToBounceEventsGroupedByBounceClassification.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsSpecificToBounceEventsGroupedByBounceClassification.txt -------------------------------------------------------------------------------- /cURL/getMetricsSpecificToBounceEventsGroupedByBounceReason.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsSpecificToBounceEventsGroupedByBounceReason.txt -------------------------------------------------------------------------------- /cURL/getMetricsSpecificToDelayEventsGroupedByDelayReasons.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsSpecificToDelayEventsGroupedByDelayReasons.txt -------------------------------------------------------------------------------- /cURL/getMetricsSpecificToEngagementEventsGroupedByLinkName.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsSpecificToEngagementEventsGroupedByLinkName.txt -------------------------------------------------------------------------------- /cURL/getMetricsSpecificToRejectionEventsGroupedByRejectionReasons.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getMetricsSpecificToRejectionEventsGroupedByRejectionReasons.txt -------------------------------------------------------------------------------- /cURL/getRecipientLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getRecipientLists.txt -------------------------------------------------------------------------------- /cURL/getSuppressionList.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getSuppressionList.txt -------------------------------------------------------------------------------- /cURL/getSuppressionListCheckRecipientSuppressionStatus.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/getSuppressionListCheckRecipientSuppressionStatus.txt -------------------------------------------------------------------------------- /cURL/postRecipientList.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/postRecipientList.txt -------------------------------------------------------------------------------- /cURL/postTransmission.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/postTransmission.txt -------------------------------------------------------------------------------- /cURL/postTransmissionWithTemplate.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/postTransmissionWithTemplate.txt -------------------------------------------------------------------------------- /cURL/putSuppressionList.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/putSuppressionList.txt -------------------------------------------------------------------------------- /cURL/putSuppressionListByRecipient.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/cURL/putSuppressionListByRecipient.txt -------------------------------------------------------------------------------- /snippets/SMTP/smtp_example.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/SMTP/smtp_example.cs -------------------------------------------------------------------------------- /snippets/SMTP/smtp_example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/SMTP/smtp_example.js -------------------------------------------------------------------------------- /snippets/SMTP/smtp_example.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/SMTP/smtp_example.php -------------------------------------------------------------------------------- /snippets/SMTP/smtp_example.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/SMTP/smtp_example.pl -------------------------------------------------------------------------------- /snippets/SMTP/smtp_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/SMTP/smtp_example.py -------------------------------------------------------------------------------- /snippets/recipient-validation/Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/Pipfile -------------------------------------------------------------------------------- /snippets/recipient-validation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/README.md -------------------------------------------------------------------------------- /snippets/recipient-validation/VB/validateRecipient.vb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/VB/validateRecipient.vb -------------------------------------------------------------------------------- /snippets/recipient-validation/ValidateRecipient.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/ValidateRecipient.java -------------------------------------------------------------------------------- /snippets/recipient-validation/c/validateRecipient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/c/validateRecipient.cpp -------------------------------------------------------------------------------- /snippets/recipient-validation/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/package-lock.json -------------------------------------------------------------------------------- /snippets/recipient-validation/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/package.json -------------------------------------------------------------------------------- /snippets/recipient-validation/recipient-validation-dev-1.rockspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/recipient-validation-dev-1.rockspec -------------------------------------------------------------------------------- /snippets/recipient-validation/recipient-validation.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/recipient-validation.csproj -------------------------------------------------------------------------------- /snippets/recipient-validation/rust_recipient_validation/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/rust_recipient_validation/Cargo.lock -------------------------------------------------------------------------------- /snippets/recipient-validation/rust_recipient_validation/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/rust_recipient_validation/Cargo.toml -------------------------------------------------------------------------------- /snippets/recipient-validation/rust_recipient_validation/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/rust_recipient_validation/src/main.rs -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.cs -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.ex: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.go -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.js -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.lua -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.php -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.pl -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.py -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.rb -------------------------------------------------------------------------------- /snippets/recipient-validation/validateRecipient.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/recipient-validation/validateRecipient.sh -------------------------------------------------------------------------------- /snippets/ruby/ruby_attachment_example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/ruby/ruby_attachment_example/README.md -------------------------------------------------------------------------------- /snippets/ruby/ruby_attachment_example/SampleVoiceMail.eml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/ruby/ruby_attachment_example/SampleVoiceMail.eml -------------------------------------------------------------------------------- /snippets/ruby/ruby_attachment_example/SampleVoiceMail.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/ruby/ruby_attachment_example/SampleVoiceMail.wav -------------------------------------------------------------------------------- /snippets/ruby/ruby_attachment_example/encode.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/ruby/ruby_attachment_example/encode.rb -------------------------------------------------------------------------------- /snippets/ruby/ruby_attachment_example/transmission.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/ruby/ruby_attachment_example/transmission.json -------------------------------------------------------------------------------- /snippets/webhook-table/fetch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/webhook-table/fetch.js -------------------------------------------------------------------------------- /snippets/webhook-table/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SparkPost/code-snippets/HEAD/snippets/webhook-table/index.html --------------------------------------------------------------------------------