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
Debbie ChrysochouDebbie Chrysochou 

My user credentials into a Visualforce email

Hello there.

I have created a visualforce email template and would like to have my user credentials in the bottom like my name,address,phone,fax, email,website etc.
From what I can understand i will need to use the field where I have created my profile in Salesforce. I have been trying to sort it out but sometimes I get errors and other just won't work. 

Any ideas please!!
Best Answer chosen by Debbie Chrysochou
lakslaks
Hi Debbie,

You can display the same in your Emails by using the User object fields in the email template.

For example:

Regards, 
{!$User.FirstName} {$!User.LastName} 
{!$User.Email}
{!$User.Fax}


Regards,
Lakshmi.

PS: If the above resolved your issue kindly mark it as the solution.

All Answers

JeeTJeeT
Is the below Global variables are working for you?
{!$User.FirstName}, {!$User.Email}, {!Fax}, {!Phone}, {!SenderEmail}

if not then
1- Create a custom component with a controller
2- Get the user details
3- Embed the created component into your Visualforce Email Template.

Thanks
Jeet
lakslaks
Hi Debbie,

You can display the same in your Emails by using the User object fields in the email template.

For example:

Regards, 
{!$User.FirstName} {$!User.LastName} 
{!$User.Email}
{!$User.Fax}


Regards,
Lakshmi.

PS: If the above resolved your issue kindly mark it as the solution.
This was selected as the best answer
Debbie ChrysochouDebbie Chrysochou
Thank you both for your answers.
Solutions provided worked fine.
Thank you again