In your notifier, do the following:
to pass your content:
@body[:message] = ''blah''
to use bcc:
@bcc = [''a@abc.com'', ''b@abc.com'', ...]
Marten Oosterhoff wrote:
> Hi,
>
> I can see the finishing line from my _first_ Ruby on Rails project,
> but a few meters before finish I''m stuck:
>
> So here''s my problem:
>
> ActionMailer works like a charm when used as a notifier (as seen on
> the wiki).
> Additionally I want to sent newsletters to the users:
>
> So I have:
> 1. Multiple recipients fetched from the DB
> 2. A newsletter-form
> 3. A newsletter-message-textfield which is not connected to
> ActiveRecord-Magic
>
> How do I pass the message over to my deliver_newsletter-method?
> @params[:nl_message] ?
>
> I have no clue (and google hasn''t either) how to use bcc with
> ActionMailer? And how to populate @bcc ?
>
>
> Thanks in advance for your help
> Marten
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails