[Resolved] we would like to change the From email address and From name
This thread is resolved. Here is a description of the problem and solution.
Problem: You have an e-commerce website with two domain names on a single WP installation using WooCommerce and WP Mail SMTP. You want to change the 'From' email address and 'From' name depending on the selected language, but you are unable to translate these settings in WP Mail SMTP. Solution: We recommend adding the following XML code to enable translation of the 'From' email settings:
Add this code to WPML > Settings > Custom XML Configuration tab. Afterward, you will be able to translate the option in WPML > String Translation.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket.
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.
Thank you very much. Now that you translated the option and it is still showing the original language, I suspect it might be an admin-related string that is not possible to translate depending on the front-end language.
There are some admin-related data that can be accessed in WordPress Dashboard only and that is why it is dependent on the language of the dashboard.
Would you please do a test?
- Go to "WordPress Dashboard > Users > Profile
- Change the Dashboard language to the second language from there.
- Test the email and see if this time it sends the FROM option in the second language.
- Go back to Users > Profile and change back to the original language.
- Now test and see if it sends the option in the original language.
- If yes, then it is a feature dependent on the admin dashboard language and not the front end of the website.
I've tried the above suggestions, but it still keeps sending the emails in the original language even though the field admin_texts_woocommerce_email_from_address is translated to another email address.
Yes please, I also installed Woocomemrce and Woocommerce Multilingual so you can use Woocommerce to send the emails. May placing an order?
The reason that I asked you to check the sandbox is that it is the only way to be able top report to the compatibility team.
Meanwhile, I will be happy to check your website if you give me the login info.
I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.
Make sure you set the next reply as private.
Also, which Woocommerce action you do to send the email so I can check
I've created an order in the sandbox (NL) and choose to send the details of that order to the client (me). In WP Mail Log I can see that it is still sent from the default email address (no-reply@wpml.org), and not the translated one (demo@wpml.org).