function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ross JamesRoss James 

Visualforce Email Template - Case Formula on ReplyTo

 

<messaging:emailTemplate
    replyTo="{!CASE($User.Region__c,"NSW","my@mycompany.com.au",$User.email)}"
    subject="Network Device Trial Agreement"
    recipientType="Contact"
    relatedToType="Network_Trial__c"

 

 This is giving me the error 

ErrorError: The element type "messaging:emailTemplate" must be terminated by the matching end-tag "</messaging:emailTemplate>"

 

If I take the formula out it is fine. Any ideas?

Best Answer chosen by Admin (Salesforce Developers) 
forecast_is_cloudyforecast_is_cloudy

Replace the double quotes in the formula with single quotes:

 

<messaging:emailTemplate
    replyTo="{!CASE($User.Region__c,'NSW','my@mycompany.com.au',$User.email)}"
    subject="Network Device Trial Agreement"
    recipientType="Contact"
    relatedToType="Network_Trial__c"

All Answers

forecast_is_cloudyforecast_is_cloudy

Replace the double quotes in the formula with single quotes:

 

<messaging:emailTemplate
    replyTo="{!CASE($User.Region__c,'NSW','my@mycompany.com.au',$User.email)}"
    subject="Network Device Trial Agreement"
    recipientType="Contact"
    relatedToType="Network_Trial__c"
This was selected as the best answer
Ross JamesRoss James

Thanks for this.

 

I am am either too tired or slowing going mad. I will take a break.