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
koti mulekoti mule 

How to Set 'From Address' in SingleEmailMessage through Custom Settings??

SaiGSaiG

You can create an Org wide email address instead of custom setting and in your apex code use

Messaging.SingleEmailMessage sMail = new Messaging.SingleEmailMessage();
sMail.setOrgWideEmailAddressId('ORG_WIDE_ADDR_ID');    

Thanks,

Sai

koti mulekoti mule

Thanks sai for ur time..But I am aware of this solution using Org wide Email Address..

We are looking for possible ways through Custom settings..

Thanks,
Koti