As the title say, it is possible to write and send multi-language email and deliver them according with the language of the user?

Thx.

CommentFileSizeAuthor
#3 mass_contact_auto_language.patch2.27 KBsapox

Comments

sapox’s picture

Priority: Normal » Major

No comments?

oadaeh’s picture

Category: support » feature
Priority: Major » Normal
Status: Active » Closed (won't fix)

No, it is not possible.

I explained the reason why in these previous comments:

http://drupal.org/node/191427#comment-627151:
"The Mass Contact module is setup to deliver to all recipients in one To: field or one BCC: field."

http://drupal.org/node/169152#comment-742858:
"It would be possible if I changed the way Mass Contact processes recipients and mailings to send multiple messages to one recipient, rather than sending one message to multiple recipients, which I'm not going to do."

http://drupal.org/node/908066#comment-3511290:
"It would also require sending an individual e-mail to every person in the list, rather than a single e-mail with everyone in the To: or Bcc: fields."

sapox’s picture

Status: Closed (won't fix) » Needs review
StatusFileSize
new2.27 KB

This is a quite helpful workaround in my opinion.

It simply filters the users email's according to the language that is displayed in the site when you submit the mass contact form.

If the site is in english, it sends the emails for the users with english language set.
If the site is in spanish, it sends the emails for the users with spanish language set.
...

Of course, every time the admin must write two different messages according with the language being used.

oadaeh’s picture

Status: Needs review » Closed (won't fix)

It won't work, unless you're sure everyone you're sending to is of the same language, and then you won't need the patch at all.

sapox’s picture

Let exemplify this.
The site has two languages enabled 'en' and 'es'.
Every time a user register an account, a language is set for that particular account, 'en' or 'es' which is of course the preferred language for the user.

Now an admin goes to the Mass Contact form and visualizes the site in 'es'. The admin write the message in Spanish and submit the message. At that point the patch filters the users email's and only sends the message to the users with 'es' language on their account.

If now you want to send the message for your English speaking users, the admin switch the language of the site to English, rewrites the message in English and sent it again. Now the patch once again filter the emails of the users with 'en' language set and sends it.

I don't see how this won't work, in fact it works quite well as a workaround for me.

oadaeh’s picture

Version: 6.x-1.1 » 7.x-1.x-dev
Status: Closed (won't fix) » Active

Okay. As long as you and anyone else who uses this feature understands that's what's happening, and there is not the expectation that each recipient is receiving a custom copy in the language of their choice, I can do this.

I will have to think of a UI that makes sense, first -- for both the administration of the module and the using of it.

Also, the feature will go into the 7.x version of this module before the 6.x version.