0

What I want to do is when I send an auto-response of a new case I want the subject of the case to be put in the subject of the email (dynamic subject). I Created a visualforce email template like the one below:

 <messaging:emailTemplate subject="{!RelatedTo.Subject}" recipientType="Contact" relatedToType="Case">
<messaging:plainTextEmailBody >
Subject: {!RelatedTo.Subject}
Congratulations!
This is your new Visualforce Email Template.
</messaging:plainTextEmailBody>
</messaging:emailTemplate>

But the email that arrives has an empty subject.

Does anyone know why this happens? If I put {!RelatedTo.Status} instead of the subject in the email appear the status on the subject of the email :/

2
  • and Subject: {!RelatedTo.Subject} in the body displays correctly?
    – cropredy
    Jan 8 at 1:28
  • Nope. It's empty :/
    – JScript
    Jan 8 at 3:03
0

I solved it.It was enough to put only {!case.subject} in the "Subject" field when creating a template that is not with a visualforce

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.