Header Keys & Sendgrid API
-
Post-smtp (your plugin) has sent over 30K emails for my client on this project over the last year.
Lately, she asked for a solution to send updates to users from her dashboard on things like “new post” and “post updated”. She has a paid Sendgrid acct which can handle a lot of mail and I configured it to work for the transactional emails for her member site and woocommerce.
I’m testing a “Notifications” Plugin in the repo. I like it for the authors no nonsense coding, but things are breaking in conjunction with post-smtp plugin. https://www.ads-software.com/plugins/notification/
For some reason at the beginning it seemed to work fine after initial tweaking. Then we kept trying other types of notifications and I get the following in the post-smtp log in the dashboard. https://imgur.com/a/nlMGjnE – These are not in any php error log so its really difficult to track.
1st status – Header keys cannot contain non-ASCII characters and empty spaces.
2nd status – The provided authorization grant is invalid, expired, or revoked
The notifications plugin has a few options when mail won’t send but not sure what they are trying (if anything) to add to the header. The setting that made it work on the first go round was to let it send when the cron fires instead of immediately. That’s about it.
The 2nd status is really problematic. I tested turning off and on “Don’t let other plugins modify this” and “Stealth” mode. I cannot say for sure but it destroyed the Sendgrid API key in the process and I had to re-create since I could not even send a test afterward. PHPmailer does not work in this setup. All other email types send fine.
I will copy the Notification Plugin author on this thread.
If you think this is something I can fix with headers in the post-smtp plugin here I’d love to find your comments.
Regards, Awesome plugin you have.
StuThe page I need help with: [log in to see the link]
- The topic ‘Header Keys & Sendgrid API’ is closed to new replies.