The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Sending different email notifications based on language
I use this to send different email notifications based on language.
If you use WPML your URL should be something like this:
Main language: http://www.domain.com/page
Spanish: http://www.domain.com/es/page
Steps (assuming just 1 extra language):
1- Add a hidden field to your form
2- Insert this as default value: [server param="REQUEST_URI"]
3- In your email settings add one email notification for each language
4- On 1st email notification add this conditional logic:
Send if all
"your hidden field" is not like "/es/"
5- On 2nd email notification (second language) add this conditional logic:
Send if all
"your hidden field" is like "/es/"
----
And that is it!
Every time someone fills a form using your main language, they will receive the first email notification.
If they fill a form using a spanish page, they will receive the second email notification.
You can add more languages and play with conditional logic.
I tried this on a site with 4 languages and it is working great.
Hope it helps someone.
Cheers!
Antonio Almeida
October 31, 2014 at 9:23 am
Thanks for this info! I was just trying to figure out a way to help someone do this.
Discussion closed.