Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 15 replies, has 0 voices.

Last updated by Itamar 3 days, 1 hour ago.

Assisted by: Itamar.

Author Posts
July 10, 2025 at 7:15 pm #17225600

vitoG-4

Background of the issue:
I am trying to send transactional emails, such as Selfie Verification and registration emails, to users in their selected language. The issue can be seen here: hidden link.

Symptoms:
All emails are always sent in English, regardless of the user's language or site language settings.

Questions:
Why are emails not being sent in the user's selected language?
How can I configure emails to be sent in the language set in the user's profile?

July 14, 2025 at 7:03 pm #17235407

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for sharing the video.

It might be a compatibility issue.
Could you please tell me which plugin is responsible for sending the emails?

Regards,
Itamar.

July 15, 2025 at 7:11 pm #17239531

vitoG-4

Hello Itamar,

It is not a plugin; it is the core of the template.
It works correctly only when the admin is the language example Spanish, send the correct language.
But it should work depending of the user language.

Let me know if you need access.

July 16, 2025 at 4:39 pm #17243060

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'm confused because in another ticket, Andreas, my colleagues already helped you with this issue, and you marked the ticket as resolved. The video you shared in this ticket is the same as the video in the other ticket.

Isn't it the same issue?
Hasn't the fix worked?

Regards,
Itamar.

July 16, 2025 at 4:54 pm #17243096

vitoG-4

Hi Itamar,

Thanks for your message.

I marked the previous ticket as ''resolved'', not because the issue was fixed, but because it was clear to me that Andreas didn’t understand the problem, and I didn’t want to waste more time in that thread.

When the platform asked me if the issue was resolved, I replied “no”, and explained that I would try to fix it myself — but to be clear: this is an issue related to WPML.

In that ticket, I had shared a video clearly showing the core of the issue, related to the template not sending the email correctly. However, Andreas replied, mentioning AffiliateWP, which suggested he probably hadn’t watched the video or didn’t understand the actual issue.

In addition, when Andreas accessed the test environment I had prepared, he completely broke the page: he deactivated all plugins and the platform stopped working properly. That’s also why I closed everything — nothing was functional anymore.

Also, Kor, one of your developers, has a working duplicate copy of the site, so it's not necessary to create a new one.

However, I’ve also restored a new test environment, and I can give you access to that too in case you'd prefer working there.

Let me know how you'd like to proceed.

July 17, 2025 at 8:31 pm #17247980

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thank you for explaining the situation with your case.

You wrote: "In that ticket, I had shared a video clearly showing the core of the issue, related to the template not sending the email correctly."

Is this template part of your theme, the LoveDate theme by jwsthemes?
hidden link

I watched your video a few times. For next time, please note that it is very challenging to follow a screencast without a voice-over explaining each step you take. Next time, please try to talk over the video and explain what you do.

Please note that my weekend is Friday to Saturday, and I'll be able to continue checking this issue and helping you on Sunday.

Regards,
Itamar.

July 17, 2025 at 8:35 pm #17247983

vitoG-4

Hi Itamar,

Is this template part of your theme, the LoveDate theme by jwsthemes?

Yes correct.

July 20, 2025 at 3:57 pm #17253196

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thank you for confirming that it is a template of the LoveDate theme by jwsthemes.

Please refer to our developer guide on email translation to see if it helps you wrap the email's strings in the correct gettext functions to resolve this issue.

https://wpml.org/documentation/support/sending-emails-with-wpml/

Alternatively, if it is practical for you, consider using an alternative theme, such as BuddyBoss, which is officially compatible with WPML.
https://wpml.org/plugin/buddyboss-platform/

Otherwise, we need to replicate this issue on a fresh WordPress installation. Then I'll be able to escalate it to our compatibility team. To achieve this, I created a test website with a clean WordPress installation. You can access it through this link:

hidden link

With this link, you'll be directly logged in.

Could you please install the LoveDate theme and see if the issue is replicable on a clean WordPress installation?

Please configure WPML as it is set on your site (just the basic configurations needed to replicate the issue are sufficient).

Please also make sure that you are installing the latest version of the theme.
When everything is finished and you can replicate the problem, please let us know.
Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.

I would like to mention that the LoveDate theme by jwsthemes is not officially compatible with WPML, and as of now, I can see that you are the only client of ours who uses it. I'm writing this to establish expectations for the priority assigned to this problem. If it's something simple that our compatibility team can resolve quickly, we'll be happy to help and share the fix with you. Otherwise, I can promise a solution. You are also welcome to contact the JWSThemes developer for assistance with this. They only stated on their part that the theme is compatible with WPML.

hidden link

Regards,
Itamar.

July 20, 2025 at 7:02 pm #17253319

vitoG-4

Hello,

I’ve installed the theme in your sandbox environment.

The theme developers have been informed about the issue, but unfortunately, they’re unable to provide a fix.

The theme is overall compatible with WPML, and only a few specific areas are experiencing issues, mainly related to email string translations.

At this point, I’m unable to proceed further in the sandbox because the theme requires site key validation to fully replicate the issue.

Please let me know how you’d like to proceed.

Best regards

July 20, 2025 at 7:12 pm #17253322

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for installing the theme on the sandbox site. However, we don't have a site key for this theme. We are not in any way connected to the authors of this theme.
Please ask the authors for a site key for the sandbox site. Explain that it is to debug an issue with WPML.

Regards,
Itamar.

July 20, 2025 at 7:13 pm #17253323

vitoG-4

I mean sitekey for wpml

Monosnap WPML Setup ‹ Sandbox — WordPress 2025-07-20 16-13-34.png
July 20, 2025 at 7:18 pm #17253339

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'm sorry for misunderstanding which site key you mean. I added WPML's site key you should be able to proceed with setting up WPML.

Regards,
Itamar.

July 23, 2025 at 11:29 am #17263606

vitoG-4

Hello,

I apologize for the delay. I was trying to implement your suggestion.

I’ve done everything I can to configure WPML within our existing platform.
hidden link

However, migrating one year of development into a new server to replicate the issue is simply not viable — it’s a mission impossible.

We previously had an open issue with Lucas regarding a compatibility problem with Theme Options (caused by Redux Framework incompatibility), but that issue was closed without resolving the underlying problem.

They only solved the Redux Framework incompatibility, and then I found the issue closed.

Here is the issue we are trying to solve:

---

At that time, the theme developer ran a test based on the current configuration of our multilingual platform and recorded a video to demonstrate how WPML is handling email delivery based on the selected language.

Here’s the issue:

* When the admin selects a language (e.g., English or Spanish), the email is sent in that selected language.
* However, what we need is for the email to be sent in the **language the user has set in their profile**, regardless of what the admin selects in the backend.

This is essential for our platform’s user experience, as we allow users to register and navigate the platform in multiple languages (EN, ES, PT), and they should receive communications accordingly — **not based on the admin’s selection** at the moment of sending.

🎥 **Video demonstration:**
hidden link

Could you please let me know if there’s a way to configure WPML so that **emails are always sent in the recipient user’s language** automatically?

We are happy to provide backend access to our **test environment** if someone from your team is available to review the current configuration directly.
Just let us know, and we’ll send over the credentials and guidance.

Thanks in advance for your support,
Best regards,

July 24, 2025 at 7:18 pm #17269135

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for explaining the issue in detail and sending the video. I understand now that you need the email always to be sent in the user's preferred language (the language the user has set in their profile). For this, we have two hooks you can use. Here are the links:

https://wpml.org/wpml-hook/wpml_switch_language_for_email/
https://wpml.org/wpml-hook/wpml_restore_language_from_email/

The following guide provides further explanation on how to implement this.

https://wpml.org/documentation/support/sending-emails-with-wpml/

I hope that this will help you achieve what you need.

Please note that my weekend hours are Friday to Saturday. If you need further assistance, I'll be available to continue checking this issue and helping you next week.

Regards,
Itamar.

July 24, 2025 at 7:38 pm #17269148

vitoG-4

Hello Itamar,

Ok thank. I'll pass the information to the theme developer and let you know.

regards