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
ezhil_kezhil_k 

visualforce email template not taking the value of email from the recipienttype

<messaging:emailTemplate subject="Testing" recipientType="Contact" relatedToType="Contact"  language="{!recipient.Langua__c}" >               
   
  <messaging:htmlEmailBody >       
    <html>
        <body>
        <p>{!$Label.Email_Label} </p>
      
        </body>
    </html>
    </messaging:htmlEmailBody>

</messaging:emailTemplate>

When i try to test it, Mail is not getting delivered.'

I doubt as that it is not taking values from the recipientType="Contact"

Please help me on this.
ShashankShashank (Salesforce Developers) 
Hi,

I tried the same code and it works fine in my test org. Please check if there is a problem with email deliverability.

Thanks,
Shashank