I have a site using Appwrite Cloud with many people joined with email, Google/Facebook/or Apple Auth. I’ve added them (156 people) to a Messaging Topic and have Mailgun API setup as a provider. I’ve sent twice to this list over the last month and not seen a traffic spike shortly after as you normally would. I’ve just logged into Mailgun to discover that the MG stats show that Appwrite API is only requesting email sends to 33 addresses (about 123 missing) - in both times email sends were triggered from the AW web console. Is there somekind of limitation on th number of emails that the AW free plan puts on messaging?
<@501784879638249472> are you familiar with this issue?
We don't put any such limits as per my knowledge.
<@462046107556511744> have we come across this in the past?
Nope
Again (4 months later - I don't send emails often)... this issue seems to still be occurring. To add more context, as I believe the debugging will need to occur on the Appwrite cloud side; I created the Message (email) from within the AW Web UI - not using an API or SDK. I created a "topic" with 89 users/targets and sent the email "now", but on the Mailgun (free account) side, it's showing in the logs only 24 "accepted" logs... which then duplicate in the logs with a "delivered: ok" log. It would appear that either AW isn't sending all the requests to send an email, or Mailgun is dropping them (maybe some type of API rate limiting). Is their logging on the AW Cloud side to show when the requests to Mailgun fail? Is AW using the best API to batch send an email with multiple recipients to Mailgun? (it would appear to me that AW is looping the API calls/hammering the Mailgun endpoint servers).
My 2nd scheduled email just sent and it too capped out at 25 recipients in Mailgun but shows 120 in Appwrite. Definitely something wrong with the integration between the two services here. <@462046107556511744> or <@501784879638249472> could you please investigate? (Note: this is different from my initial hypothesis - I think the cap is now a "rate limit" on the Mailgun side, but Appwrites integration should be taking care of this, both in rate delay/better endpoint use and logging so you can see the failures.
🐛 My guess is that AW is calling the https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/messages/post-v3--domain-name--messages for each "target" instead of making all the targets into an array and sending in the "to" value of the MG API.
To help with debugging; it seems the MG API will include headers about the rate limits. https://documentation.mailgun.com/docs/mailgun/api-reference/api-overview#rate-limit-headers
I've looked through the AW source code, but fear this could be a big recator in the way emails are sent (from individual STMP requests to per provider API requests). I've raised the issue on GitHub: https://github.com/appwrite/appwrite/issues/11023
Recommended threads
- CLI - get Database Totals
Is there a way with the Appwrite CLI to get table row totals (count)❓
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...
- Scheduled functions (CRON) not firing — ...
Hi team — same symptom as a recent thread here where switching from a round cron expression to an offset-minute one fixed it. Project ID: 69fa56560037c7843a85 ...