Closed (fixed)
Project:
Mail Template
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2011 at 07:33 UTC
Updated:
7 Jun 2011 at 06:04 UTC
Is it possible to send e-mail based on recipient's preferred language?
Comments
Comment #1
vasikei think you're right. thanks a lot
for User defined in the rule or arbitrary recipients it's easy & obvious.
What about roles?
Do you have any ideeas/directions?
i don't think it will be so nice to call mail_template builder and/or mimemail sender for every user of the choosen roles.
Comment #2
maximpodorov commentedBTW, I removed the unneeded line (as I think):
As for whole role recipients, you can divide all users of that role into language groups and send mail to groups (not to every user separately).
Comment #3
vasikethanks. i thought also about the same solution
BUT: What if i want to use this user tokens in the Mail Template? Or maybe it's not possible?
I think that we need to send distinct emails. ???
Anyway i think this a general issue.
What do you think?
Comment #4
maximpodorov commentedUser tokens (for the user to whom the message is sent) must be available in templates, I think.
BTW, I created a module which adds token for user password (it's available when password is changed or set initially). I'd like to replace standard Drupal email notification of new user creation with templates created with your module, but this requires working user tokens in templates.
Comment #5
vasikethanks for the support
answers
1. language support it seems to be solved. check the last commit.
2. about using user token, i think it should work too, it's just about using the right settings in the Rule.
if you face problems please open a new task about.