-
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
Apex Integration in Salesforce - The Developer Guide
This article closes the arrangement, Learning Salesforce Integration, which subtleties different joining choices with Salesforce. It covers utilizing Apex for building incorporations, which turns into…
Choose Salesforce Registered Partners for your Next Project
CRM platforms have emerged as a revolutionary tool for businesses to drive growth, improve customer satisfaction, and streamline operations. Salesforce leads the CRM industry with…
Step by Step Guide for Salesforce Knowledge Implementation
Salesforce Knowledge management capability provides the ability to solve multiple queries or incidents by providing the knowledge base by using articles. This can be utilized…
Popular Salesforce Videos
What are Custom Settings in Salesforce?
Custom settings are similar to custom objects in that they let you customize org data. Unlike custom objects, which have records based on them, custom…
Create Survey in Salesforce | #Feedback Program #Salesforce Tutorials | Mini Project
In this video you will learn : What are the surveys? Why businesses use surveys? And how you can create and send surveys using #Salesforce? …
Salesforce On-Demand Administrator
Apphienz's On-demand Administrator delivers much more than the company's expectations. It is hands-on, makes the work easy, efficient and productive along with being available to…