Hello, I'm having a problem with actionmailer and mass (sort of) mailing.
Basically, sometimes I need to notify every subscribed user in my app by mail. Since the amout of users is very small (subscription is not public), i thought that actionmailer would be enough.
When i need to send these email I do something like:
for user in Users.all Mailer.deliver_notification(user.email) end
It works sometimes, but i randomly get a "554 Policy Violation" error from the mail server teling something about spam protection. I suppose that every call to Mailer.deliver_something... opens and closes a connection with the server, therefore the server is probably complaing about that since I send almost 100 emails in a short period of time. Sending a single mail with multiple recipients it's not what I really want unfortunately.
Is there a simple solution to this problem without using things like ar_mailer or similar? Is it really a problem for the mail server to get so many mails at once to send or should I complain about that with the mail server owners?
I hope the problem is clear, my english is not so good.
Thanks in advance!