How can i send locale specific email to a set of users together ,
including cc mail to the current user. Now, i have the below code:
mail(to: participants, cc: @current_user.email, subject:
default_i18n_subject(speech_subject: mtng.meeting_subject))do |format|
format.html
end
The above will send a mail in the default locale to all users and
current user. But , i need to send a mail in each recipient's locale.How
is it possible?
For sending a mail to a single user it is possible to get the locale by
the following:
I18n.locale = (topic.leader).language.to_s if (topic.leader)
But for sending a mail together to a set of users how is it possible?
Please help. Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/090dae803f66ec697b0ba99a214b3ded%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment