You need to sign in to do that
Don't have an account?
Martin Krchnak
Visualforce email is not sent in right language
I have a Visualforce email template which uses the Custom Labels. For all the custom labels there are translations. I determine the language of the email based on the language code on the contact:
<messaging:emailTemplate subject="{!$Label.Email_Subject}" recipientType="Contact" relatedToType="Object__c" language="{!recipient.Prefered_Language_Code__c}">When I test the Visualforce email template in setup using the button Sent Test and Verify Merge Fields, the email shows both, in the setup and in received test email correctly, in the right language. However, when the email is triggered by the Process Builder, then it has received in English (default language). Any thought what could be wrong? Could the language depend on anything else than just the specified field Prefered_Language_Code__c on Contact?
As per Translated Template Example seems no issue with the above code as below. May I suggest you to please check with salesforce support team to do the needful.
Regards,
Nagendra.
I have another question. If I send such Visualforce template using Send an Email button from the Contact, why the language isn't correct and also the labels are not showing. Any idea?
Thanks