Sending a single email to multiple recipients is not really a winning strategy to defeat the spam filters in 2016 -- like, maybe you can send an email to a small group of friends or colleagues, but past 20 or 25 people most SMTP servers actually reject the outgoing send when you try to send it. (And it will certainly flag your email and domain by spam filters).
I would suggest that because of this new reality -- which wasn't really the way the world worked in 2005 --- the option should be re-thinked to `allow_multiple_recipients` which would default to false. If you pass more than 1 recipient and allow_multiple_recipients is false (or has defaulted to false), the Mailer would either warn or raise. As this would be a breaking change something like this should probably warn for at least 1 version of Rails before it starts to raise. This strategy works fine for everyone who already sends one-off emails and encourages people to move in that direction, and explicitly opt-out of that behavior if they want to retain the old functionality. Just my 2ยข. -Jason > On Oct 7, 2016, at 12:29 AM, Brian Morearty <br...@morearty.org> wrote: > > > Ideally testing would have brought the "error" to your attention before it > > was used in production. > > I think the point here was that the coder did not think if this problem. > Adding a test for it would require thinking if it. > > I do think it would be strange for bcc to be the default, though. The only > alternative I can think of would be a small breaking change: if multiple > recipients would be able to see each others' emails, require setting an > `allow_recipients_to_see_each_others_emails` flag. If not set, and multiple > recipients are on to/cc, raise an error. > > I'm not sure how good or bad this would be. > ---- Jason Fleetwood-Boldt t...@datatravels.com http://www.jasonfleetwoodboldt.com/writing If you'd like to reply by encrypted email you can find my public key on jasonfleetwoodboldt.com <http://jasonfleetwoodboldt.com/> (more about setting GPG: https://gpgtools.org) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.