I'm sending mails from a Rails application using GMail. When I start the server, everything works fine and Rails sends mails both by using deliver_now and deliver_later. However after some time (about 5h or 50 mails, exact numbers missing), mails sent via deliver_later do not get sent any more. Mails sent by deliver_now are still getting sent.
- The SMTP configuration must be correct because mails are still being sent
- For the same reason, it cannot be a rate limit
- The deliver_later method works and sends several mails before the problem occurs
- Once the problem occurs, no more mails get sent at all using deliver_later
How can I debug this? There are no erros in the logs.