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
Anupam AgrawalAnupam Agrawal 

Customize SenderDisplayName sending email using Visualforce Template

I am setting Case owner Id as Queue(Group) Id and sending email to all group members belong to same queue set as case owner. To achive this I have created an email alert Workflow using visualforce template and sending the email to all group members but I am unable to customize the SenderDisplayName in visual force template. I want to the above mentioned functionality will work under Customer Portal.

 

Thanks in Advance.

anuraj123anuraj123

Hi Anupam 

    

    do like this 

 

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setSenderDisplayName('HR Recruiting');

 

 

Thanks

Anu