Skip Navigation

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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 10 months, 3 weeks ago.

Assisted by: Long Nguyen.

Author Posts
June 19, 2024 at 11:08 am #15755164

issamM-2

Background of the issue:
I am trying to set a different email and name on WP Mail SMTP for each language on my site hidden link. I want to translate those fields.

Symptoms:
I am unsure if it is possible to translate the sender name and email fields in WP Mail SMTP for each language.

Questions:
How can I set a different email and name on WP Mail SMTP for each language?
Is it possible to translate the sender name and email fields in WP Mail SMTP?

June 20, 2024 at 8:46 am #15762150

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Issam,

Thank you for contacting WPML support, I’m happy to help you with this issue.

I see the options From Email and From Name are saved to the option name "wp_mail_smtp" in the database. So it can be translated by using this custom XML configuration code in WPML > Settings > Custom XML Configuration tab

<wpml-config>
    <admin-texts>
        <key name="wp_mail_smtp">
          <key name="mail">          
            <key name="from_email" />
            <key name="from_name" />
            <key name="from_email_force" />            
          </key>
        </key>
    </admin-texts>
</wpml-config>

https://wpml.org/documentation/support/language-configuration-files/translate-strings-in-wp-options-table/

However, I've tested to translate the From Email option and see that it isn't possible to send by another email address because it is configured by the third-party app.

I hope that makes sense.

The topic ‘[Closed] Translate WP Mail SMTP sender name and email’ is closed to new replies.