How can i send locale specific email to a set of users together , including cc mail to the current u

9 views
Skip to first unread message

Ragesh R.

unread,
Aug 22, 2015, 2:28:14 AM8/22/15
to rubyonra...@googlegroups.com
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/.
Reply all
Reply to author
Forward
0 new messages