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
Dilip vDilip v 

How can is i send lead information(like name,email....etc) using visualforce email templates?

Hello,

My requirement is when the lead is created i want to send the information that they(customers) entered to their email like welcome message.
what is syntax to represent the lead filds in the vf email template.
Dilip vDilip v
Thank you for your responce .

I wrote this code:
<messaging:emailTemplate subject="Hello" recipientType="Lead" relatedToType="Lead">
<messaging:plainTextEmailBody >
            Dear {!recipient.FirstName} 
            Welcome to sfdc.  AND 
            
            Happy New Year       
 
</messaging:plainTextEmailBody>
</messaging:emailTemplate>

But in the receved email that firstname({!recipient.name}) wasn't displayed.
First name wasn't displayed after dear.
 
Sai Ram ASai Ram A
Hello Dilip

I tested your template, I believe you might not have entered FirstName in the Lead Record else it is working fine

Thank you
BLearn