SparkPost Mail Transport

SparkPost Mail Transport 5.1.2

Free Download via Daily Lucky Task
XF Compatibility
  1. 2.3.x
  2. 2.2.x
Summary
This addon adds a SparkPost mail transport option to XenForo, allowing all emails sent via the forum to be routed through SparkPost. It supports full handling of bounced emails and unsubscribed users using SparkPost's Events API without requiring a mailbox setup. Users can configure various features such as click tracking, open tracking, and event processing batch size. The addon also includes testing facilities for verifying email delivery and provides detailed instructions on configuring suppression lists based on transactional vs non-transactional email handling.
SparkPost Mail Transport adds a SparkPost mail transport option to XenForo, allowing all emails sent via the forum to be routed through SparkPost. It supports full handling of bounced emails and unsubscribed users using SparkPost's Events API without requiring a mailbox setup.

SparkPost account.
This addon has full bounced email and unsubscribed email handling support using the SparkPost Events API - no mailbox required.
Setup
If you haven't already done so, you will need to configure a sending domain for your forum in your SparkPost account. It is highly recommended that you also set up a default bounce domain.
You will then need to create an API key with the following permissions:
  • Message Events: Read-only
  • Transmissions: Read/Write
  • (Note, current version instructs you to allow Send via SMTP API permission, but this is not required - these instructions will be removed in a future release).
Once you have your API key, change the Email transport method in the Email options page to "SparkPost" and paste your API key into the supplied box.
Configuration
There are several options you can configure for mail sending and event processing in the SparkPost Mail

  • Click Tracking
    turns on click tracking on all links in emails sent
  • Open Tracking adds a tracking image to all emails sent to track opens
  • Message Events Batch Size allows you to configure how many events the system will attempt to retrieve in each batch. In general you shouldn't need to adjust this from the default.
  • Test Mode will append '.sink.sparkpostmail.com' to all recipient email addresses so we can test communication with SparkPost without actually sending any emails to the recipients.
It is highly recommended that you set up a custom tracking domain before enabling click or open tracking.
Testing
You can test the functionality of the addon using the built in XenForo email test system - go to the admin UI > Tools > Test outbound email
Note the email transport class should be \SwiftSparkPost\Transport - if it isn't, then you haven't installed or activated the addon correctly.
There is also a second test facility which allows you to specify whether to send transaction or non-transactional emails. Go to the admin UI > Tools > Test SparkPost
Turn on the checkbox to send transactional email - turn it off to send non-transactional.
In all cases, you should examine the headers of the emails you receive to verify that it was indeed sent via SparkPost and to validate the presence/absence of the List-Unsubscribe header.
Transactional vs Non-transactional Emails
Transactional emails are automated emails sent by a system to communicate with a customer or site user about information relevant to their account or usage of your site. They are typically specific to an individual user and are generally important to the user for the ongoing use of your site.
Examples of transactional emails are:
  • account creation and activation emails
  • password resets and two-factor authentication
  • security and account alerts
  • notifications resulting from subscriptions or alert options the user has chosen
  • purchase receipts and shipping notifications
  • legal and important site notices
Non-transactional emails (also referred to as Commercial Emails) are generally sent to a group of users in bulk (although they may also be personalised), containing promotional or marketing material. Usually only users who have opted in to receive such material from you will receive them.
Examples of non-transactional emails are:
  • newsletters
  • sales offers
  • new product updates
  • email designed to increase user engagement and onboarding, etc
The SparkPost website has more information about Transactional vs Commercial emails.
By default, SparkPost marks all emails sent through their API as "non-transactional". This addon changes that behaviour and sets all forum emails to transactional except for:
  • Emails sent via the admin UI - Communication > Email users
  • Welcome emails
There are two significant differences between transactional and non-transactional emails sent via SparkPost:
  1. non-transactional emails have the List-Unsubscribe header added (overrides the header added by XenForo) for one-click unsubscribe requests in some email clients. Transactional emails do not contain this header.
  2. there are separate suppression lists for transactional and non-transactional emails. If someone unsubscribes from non-transactional emails, you can still send them important transactional emails like forum subscriptions and password resets. However, if someone unsubscribes or blocks you from transactional emails, you should disable their account, since you will no longer be able to email them about important forum information.
See below for more information on suppression lists.
Bounce and Unsubscribe Handling
The automated bounce and unsubscribe handling in the addon will check for all of the standard hard and soft bounce calls that might be received as a result of sending emails. These bounced messages are intercepted by SparkPost and we can then execute a query to determine what action we need to take as a result.
You do NOT need to configure a "Bounced email address" (unless you don't have a default bounce domain set up) or "Unsubscribe email address" in your email options. Nor do you need to enable the "Automated email handler" or "Enable automated email handler" options - SparkPost does not forward bounced emails or unsubscribe notifications via email - we query their API to determine bounce / unsubscribe information.
Unsubscribe handling is a little more sophisticated than the standard XenForo system - since we differentiate between transactional and non-transactional emails and handle them differently.
Note that if we receive a hard bounce for transactional emails - the users account will be disabled to prevent further emails being sent.
Suppression lists
When SparkPost receives a hard bounce from a sent email or a List-Unsubscribe request, it will place that email address onto a suppression list which means that you can no longer send email to that user. This is in place to protect your sending reputation - since continuing to send email to an invalid or unsubscribed address is a spam indicator which could see you blocked from some mail providers.
The thing to be aware of is that if a users forum account has been disabled due to bounced emails, they will most likely have been added to the SparkPost suppression list as well. If you re-enable their account without changing email addresses, then they may not receive any emails from your site because sending to them is blocked by SparkPost.
If you are sure the email is now valid, you can remove them from the SparkPost suppression list - in the SparkPost admin console - https://app.sparkpost.com/lists/suppressions.
Just remember that there are two separate lists - one for transactional emails and one for non-transactional emails.
  • Like
Reactions: GamerGuru007
Author
newimage
Views
678
Extension type
zip
File size
733.4 KB
First release
Last update
Latest file name
Hampel-SparkPostMail-5.1.2.zip
MD5
ee79b96e7bf17054c6d2b2886c2fdedb
VirusTotal
View report
Ratings 0.00 star(s) 0 ratings
Link was Broken? Send message to the Website Team and we will assist you quickly!
Support Developer If you are satisfied with the test or your project has earned you money, Click the More Information button to support the developer by purchasing.

Latest updates

  1. 5.1.2 - 2026-12-01
    bugfix: on a forum running Hampel/Monolog, the message event fetch job failed when SparkPost rate-limited it, instead of waiting as long as...
  2. 4.0.1 - 2026-09-03
    bugfix: message event processing failed when the Monolog addon was not installed bugfix: SparkPost error details render correctly again on the...
  3. 3.1.1 - changelog
    Updates: handle WhatsNewDigest emails in this addon rather than via adapter check for WndSparkPost adapter during setup and fail until it...

More resources from newimage

Bemox - Digital Marketing & Agency WordPress Theme N
Bemox is a WordPress theme designed for creative and digital marketing agencies, offering a professional...
Maximix - Business Consulting WordPress Theme N
Maximix is a premium WordPress theme designed for various business sectors, including startups...
Finex - eCommerce PSD Template N
Finex is a sleek eCommerce PSD template designed for online stores, fashion boutiques, and retail...

Similar resources

[01] Restrict Browsing For Unverified Email Users A
The product allows users with unverified or unconfirmed email addresses to view their own profile, update...
[alexD] AllowedEmails A
The product offers a whitelist feature for email hosts to enhance security by allowing only trusted...
[Andy] Birthday email A
This product automatically sends birthday emails to users based on their birth dates, adhering to privacy...
Back
Top