-
How can i show Record Owner name in From/Reply in Email sent through Salesforce?
I want to show Record Owner name in From/Reply in Email sent through Salesforce. Can anyone help me in achieving this thing?
Here is my code----
list<String> listOfEmailsAddress = new list<String>();
for(Lead leadobj : leadList){
String [] toRecipients = new String[] {leadobj.NominatorEmail__c};
Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
email.setToAddresses(toRecipients);
email.setSenderDisplayName(leadobj.Owner_Name__c);
email.setTargetObjectId(leadobj.Id);
email.setUseSignature(false);
email.setBccSender(false);
email.setSaveAsActivity(true);
email.setTemplateId(templateId);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] {email});
}
Log In to reply.
Popular Salesforce Blogs
Salesforce Lead Management: A Detailed Guide (2022)
The Salesforce lead status is an integral part of your business that can guide you to success with its strategies for effectively managing leads. Lead…
Implement Salesforce In Your Business
Salesforce is an amazing platform with boundless potential outcomes. As a Salesforce implementation project manager, you will own the implementation process and guide the project…
View Campaign Influence Report Custom Link for Salesforce Lightning
Campaigns with Influenced Opportunities The Campaigns with Influenced Opportunities report doesn’t seem to be working in the Salesforce Lightning Experience, So here’s the solution for…
Popular Salesforce Videos
Salesforce Integration Tutorial | Integrate Salesforce with Apps
This "?????????? ??????????? ????????" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…
Salesforce Financial Services Cloud demo
Today's seamlessly connected customer is raising expectations for organizations to "show them they know them" by providing efficient, informed and integrated experiences no matter which…
How to Create Contact in Salesforce | Salesforce Contacts | Salesforce Tutorial
Contact in Salesforce represents the individual people associated with the business accounts in your organization or Contact records are used for individuals to store personal…