1

I am working on a multilingual Drupal 7 site using a single contact us form. It has 4 languages. The contact us form is multilingual i.e labels of form fields changes, depending on the language you have selected. But it has a single recipient now.

Now I want it to have conditional recipients i.e if English is selected the contact us form should be emailed to a@gmail.com and if Danish is selected then to b@gmail.com and so on.

Any suggestions how to do it ?

website form : http://dev-salman.com/venuepoint/contact

0

Refer to my answer to the question "Contact form is not being translated" related to the usage of the i18n_contact module. That's a prerequisite for the contact form to be available in multiple languages. However it will not allow you to specify an eMail ID for each language.

I'm not familiar (yet) with the tContact module, but it might help to implement what you're trying to setup. Here's an excerpt about it (from its project page):

... allows you to make the site-wide contact form fully translated on multilingual sites. Categories can be set to display only in a specific language, or they can be language neutral. Depends on the core "contact" module for the site wide contact form.

If with the tContact module you still can't get it to work, then I'd investigate if sending eMails by using the Rules module you can get it to work. E.g. by using the patch in comment #3 of issue # 1472316. For more details about this issue, visit the question about "Rule condition to check which language is used by the visitor?".

| improve this answer | |
0

With this module https://www.drupal.org/project/tcontact you can create different contact categories for each language so you can specific different recipients.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.