Hi @orjrw,
You’ll need to make sure you have the right settings in order to get notifications sent out. Things that can cause notifications to not be sent or be delayed:
1. No roles selected and overrides off
2. Background notifications turned on and no cron-job or not enough visitors to trigger the mailout in a timely manner
3. No roles selected and overrides ON, but nobody subscribed to forums/topics
4. Author notification turned off while testing mailout to the topic/reply author
I’m planning to add a support pane to get all the settings in a simple text format so I can assess what’s going on easier. In the meantime, please check the 4 items above.
Cheers,
Vinny
Thread Starter
orjrw
(@orjrw)
Hello Vinny,
See below for what we did to test and check that we are in line with your suggestions.
1. No roles selected and overrides off
[ORJRW] We do have roles selected and overrides are on (both)
2. Background notifications turned on and no cron-job or not enough visitors to trigger the mailout in a timely manner
[ORJRW] Background notifications are off (we also turned it on to see if it changes anything), made sure there are always visitors online
3. No roles selected and overrides ON, but nobody subscribed to forums/topics
[ORJRW] We let a member of the roles subscribe to a Forum
4. Author notification turned off while testing mailout to the topic/reply author
[ORJRW] Author notification is turned off, but we were testing notification to the Forum moderator (member of a role we selected and the one that subscribed to the forum in which we posted)
When we switched overrides off at least the topic creator received an email, but we believe this is send by bbPress in this case basically confirming that the email works.
Unfortunately out of the logs we do not get any valuable information of what is wrong except a generic ERROR message. Since all other emails work, irrespective if it comes from WordPress or another plugin, we are convinced that our mail setup using SparkPost is working and that the issue is very likely with your plugin.
We are very interested and gladly assist you further to solve this problem.
Thank you.
Kind Regards, Olaf
Hi Olaf,
My plugin uses wp_mail() to send its messages. You’ll probably need reach out to SparkPost developers and find out how to get the error message so we can debug this further. They most likely implement their own wp_mail() and will surely have a filter or action that will let you output the correct error. Knowing the error will make it possible to fix whatever is causing the problem.
Cheers,
Vinny
Thread Starter
orjrw
(@orjrw)
Hi Vinny,
the emails came through after we disabled the setting “Encode Subject line using UTF-8“.
Cheers
Olaf
Hi Olaf,
What encoding is your site using? Can you provide a sample subject line?
Cheers,
Vinny
Thread Starter
orjrw
(@orjrw)
Hi Vinny,
could you please point me to where I see the encoding of my site?
Do you want a sample subject line of an email that went through or of one that did not go through?
Cheers
Olaf
What’s your domain name? I can probably find out the encoding. Yes, please provide the sample subject line. You might also be able to see error messages in your host’s error logs, as I suspect iconv_mime_encode was crapping out.