Using the anvil.email.send() function to send emails for confirming accounts. I’m testing it using my own email, and it seems like it has a mind of it’s own.
There will be days where I get all the emails within seconds of running the functions, and the next day, no emails will show up. I check all tabs, spam, promotions etc.
Any additional setup I need to do on the backend to ensure that gmail isn’t filtering out my emails? Anyone else have this issue?
Are you using a custom domain with DKIM setup? I had to work with Anvil support to get that going, but it wasn’t intermittent…no emails would send until it was configured.
Anvil support can also check to see if any emails are getting kicked back, if you don’t have your app setup to receive emails.
2 Likes
Gotcha, I think there was an issue last time I setup DKIM. I’ll check again, thanks! It’s wierd, it WILL send a few through but it’s real testy.
If the problem is linked to specific email addresses, they may have been blacklisted.
My apps were able to send emails to all internal email addresses with the exception of a few of them.
After some investigation from the Anvil support, they found out that some email addresses were blocked because Anvil had previously tried to send them an email which had bounced.
The emails had bounced because they were either Outlook group / new employee email addresses not yet configured to receive outside emails. After fixing the address configurations, they didn’t bounce any longer, but Anvil had already blacklisted them.
The Anvil support did remove the addresses from the list and everything restarted working.
3 Likes