You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a starting point that i found for this feature.
def send @newsletter = Newsletter.find(:params['id']) @recipients = Recipient.all
@recipients.each do |recipient|
Newsletter.newsletter_email(recipient, @newsletter).deliver
end
end
def newsletter_email(recipient, newsletter)
# these are instance variables for newsletter view @newsletter = newsletter @recipient = recipient
mail(:to => recipient.email, :subject => newsletter.subject)
end
end
Should have a form in the settings page that allows the admin to send an e-mail to all active users. Form should have two text areas:
Subject:
Message:
E-mail should prepend the subject with "[competition_name] ".
The text was updated successfully, but these errors were encountered: