What I’m trying to do:
Run a background task, which sends emails to a list of users - was working until Saturday afternoon
My app does have a custom URL, but I do not have a custom email domain setup. This hasn’t been a problem before, and has been working for months.
I use the same email code as found in the other posts, like https://anvil.works/forum/t/issue-sending-emails/6184
What I’ve tried and what’s not working:
- Adding try/except around the send_email to try and capture any errors.
- Tried setting a local variable to be the result of the send_email() function, then printing that variable (all seems fine)
- checking the background task logs just says it has sent the email.
- edited the scripts to dump more information into the logs, still get messages that emails have sent.
- Tried republishing the app, get the same “all good” messages when rerunning the background tasks.
- Checking Junk/Spam on the recipient email address.
I’ve read the forum, and can see that previously there was an issue with the email provider (see here)
Wondering if that has happened again?
I see that the advice is to setup your own custom SMTP after registering with a email_provider, but as this is a live app, I would like to leave that as a last resort.
Has anyone else witnessed odd email behaviour since Saturday?
Cheers