SparkPost Mail Transport for XF 2.2

SparkPost Mail Transport for XF 2.2 2.1.4

No permission to download
Yes, I got it.I suggested telling people to use TXT for the root domain and CNAME for subdomains;and also to check the forms on their site, because depending on how you call the pages, you might see different forms.Only TXT, only CNAME, or both.

The support is quick and addresses all questions. Two questions are still pending: What happens if you have paid but do not use the service? I have paid for both US and EU services. And what if you want to send a mailing with more than 1000 recipients when there is a daily limit of 1000?

Once I have the answers to these questions, I will update here.
 
And what if you want to send a mailing with more than 1000 recipients when there is a daily limit of 1000?

"All new paid accounts start with a daily limit of 1,000 emails. The limit will grow proportional to the account's monthly volume over the first week of the account. Daily limits also grow over the first week after upgrading"​
"What happens if I exceed my limit?
If you exceed your limit, whether Daily or Monthly, your messages will be rejected by SparkPost (not queued), so please ensure your account has the appropriate limit needed for your sending pattern, or consider splitting your send to accommodate the limits."​
If you're migrating a busy site across, you'll want to be careful about that. Best to test it for a week first on a demo site - make sure you're actually sending mails, but not too many.

It's things like this (and IP warmup when using a dedicated IP), that require advanced functionality like failover or round-robin services across multiple providers.
 
Events forbidden

Code:
Previous GuzzleHttp\Exception\ClientException: Client error: `GET https://api.sparkpost.com/api/v1/events/message?page=1&per_page=1000&events=bounce,policy_rejection,out_of_band,generation_rejection,spam_complaint,list_unsubscribe,link_unsubscribe&from=**** resulted in a `403 Forbidden` response:
{"errors": [ {"message": "Forbidden."} ]}
 
Last edited:
It seems that I can send emails now. I will monitor whether the previous error recurs. I’ve seen one bounce in the SparkPost lists, but it doesn't appear in the XenForo log. Does your addon log bounces?

If bounce.forum.com is configured as a bounce domain in SparkPost, can I use bounce@forum.com in the XenForo email settings?"
 
Last edited:
Holmes and I discovered that something is being executed every 30 minutes, specifically at minutes 21 and 51. Upon checking the cron table, we found the following entries

sparkpostmailMessageEvent
Hampel\SparkPostMail\Cron\MessageEvents
fetchMessageEvents

New state: unauthorized

Events Search: Read-only is set.
 
Last edited:
Events forbidden

Code:
Previous GuzzleHttp\Exception\ClientException: Client error: `GET https://api.sparkpost.com/api/v1/events/message?page=1&per_page=1000&events=bounce,policy_rejection,out_of_band,generation_rejection,spam_complaint,list_unsubscribe,link_unsubscribe&from=**** resulted in a `403 Forbidden` response:
{"errors": [ {"message": "Forbidden."} ]}

What is the timestamp of this error? Has it only happened once, or are there multiple entries?
 
It seems that I can send emails now. I will monitor whether the previous error recurs. I’ve seen one bounce in the SparkPost lists, but it doesn't appear in the XenForo log. Does your addon log bounces?

Yes - look in the Email bounce log in your admin area

If bounce.forum.com is configured as a bounce domain in SparkPost, can I use bounce@forum.com in the XenForo email settings?"

No, you'd need a bounce domain for forum.com to send mail from bounce@forum.com

Also, don't send mail from a "bounce@" email address - bounces won't come back to that address, so it's not a good name for it.

If a user replies to an email sent from the forum, it will go to that address, so unless you want to discard replies (not recommended), I suggest you use something like webmaster@ or info@ as the sending address and make sure you actually have a mailbox configured to receive those replies. For example, Xenforo.com uses contact@xenforo.com as their sending address.

Personally I'm a strong believer in never using noreply@ or other invalid email addresses as your sending address - I think it harms your reputation if human replies are discarded or ignored.
 
It has happened many times, twice every hour at minute 21 and 51; it comes from your cron job that fetches the events. Since the last call, it seems to be working, maybe my permissions for the key were wrong. It’s strange that I couldn’t run the cron job without errors myself, but it worked fine during the normal run, and there are now email addresses in the bounce log.

Hallelujah!

Thank you so much for your addon and your support.

I’ll let it run on US for a month, and if you include EU, I’ll switch it to EU then. Or maybe it’s better never to touch it again.

Two days of constant stress, I could use a vacation. Unfortunately, now there are two extra days of work on my desk.
 
I just noticed that Cloudflare offers email services without a mailbox. Is this similar to SparkMail? Would we need a new add-on from you for this?

:-)
 
I just noticed that Cloudflare offers email services without a mailbox. Is this similar to SparkMail? Would we need a new add-on from you for this?

:-)

Do you mean "Email Routing" ?

1724270943522.webp


... this is not for sending emails - this is for inbound emails being redirected to your personal mailbox (or some other location).
 
Anyone using this addon getting more redirect to spam nowadays? I checked the email report and it's coming clean on all authentication methods, but it's most likely either xenforo emails are getting more flagged, or something with sparkpost.
 
I'm not seeing any increase in emails getting sent to spam across my 8 sites

1743979912505.webp


... how do you know that more emails are getting sent to spam? Are you seeing it in a report?

Which emails are being sent to spam? Is it registration confirmation emails? Notification emails? Bulk-emails sent to all users (eg from activity updates etc) ?

What I am seeing is a significant increase in the number of attempted spam registrations - many of which use bogus or invalid email addresses - and they will be causing a lot of bounces. I've been able to block a lot of the spam registrations using various tools like Cloudflare and my Geoblock addon - but I still get quite a few coming through each day.
 
Gmail is marking all Xenforo emails on my board as "promotion". We have ALL non-transactional emails disabled.

The only emails my users get are:
  • registration
  • password reset

I use this Sparkpost plugin. I tried to contact Gmail but got nowhere.

I think the Gmail problem might be Xenforo emails in general, because too many forums are using the "Activity summary" newsletter - and Gmail is using some overly broad signature that detects all Xenforo emails as the activity summary newsletters.

Love the plugin tho, it "just works" thanks for your continued support of it.
 
Gmail is marking all Xenforo emails on my board as "promotion". We have ALL non-transactional emails disabled.

The only emails my users get are:
  • registration
  • password reset

I use this Sparkpost plugin. I tried to contact Gmail but got nowhere.

I think the Gmail problem might be Xenforo emails in general, because too many forums are using the "Activity summary" newsletter - and Gmail is using some overly broad signature that detects all Xenforo emails as the activity summary newsletters.

Love the plugin tho, it "just works" thanks for your continued support of it.
Are those emails being marked as promitional showing a list-id or an unsubscribe button? If so there could e a problem with them being marked as non-transactional?
 
Back
Top Bottom