In my app, I''ve got products that a user can subscribe to emails updates...when somebody updates the product''s attributes, they get an email. My question is how do I deliver that email so that all the user''s email addresses are NOT in the "TO:" line, only the individual''s email address? I''m currently sending my mailer an array of email addresses. Is that bad form? Should I instead loop over each user subscribed to email alerts and call my mailer once for each user? That seems like bad practice... Thanks for any advice. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, Nov 24, 2009 at 4:31 PM, Lee Smith <autiger02-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In my app, I''ve got products that a user can subscribe to emails > updates...when somebody updates the product''s attributes, they get an > email. > > My question is how do I deliver that email so that all the user''s > email addresses are NOT in the "TO:" line, only the individual''s email > address? I''m currently sending my mailer an array of email > addresses. Is that bad form? Should I instead loop over each user > subscribed to email alerts and call my mailer once for each user? > That seems like bad practice... > > Thanks for any advice.This is what Bcc: is for.. populating the envelope without the users knowing about each other. -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ok so the ''recipients'' field is not required then...I can simply swap ''recipient'' for ''bcc''? That sounds easy enough...thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dave English
2009-Nov-25 08:25 UTC
Re: Re: Multiple recipient email delivery best practices?
In message <e5ec1bf2-b5e6-48f6-9aa4-209bf25c0202-wsAX41T1PunCR6KFjlihX2B/v6IoIuQBVpNB7YpNyf8@public.gmane.org>, Lee Smith <autiger02-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes>Ok so the ''recipients'' field is not required then...I can simply swap >''recipient'' for ''bcc''?That''s right> That sounds easy enough...thanks.The advantage for your users is that their e-mail addresses are not disclosed. The advantage for you is that it is only one e-mail, with a single message ID, out to your SMTP smarthost & perhaps beyond. http://en.wikipedia.org/wiki/Blind_carbon_copy Regards -- Dave English - dave-oeX4buQEcKLQT0dZR+AlfA@public.gmane.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks the help! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.