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
Shobha JamesShobha James 

Is there any way to send an email to the email id associated with picklist value?(using work flow)

I want to send an email to the persons whoever is selected in the picklist .
Ex: if ABC is selected in the picklist field ,the mail should go to
    if XYZ  is selected in the picklist field ,the mail should go to, they are not the Users
How can i do that using workflow or Process Builder?
Raj VakatiRaj Vakati
You can able to do it with apex trigger but not with process builder. Refer the below link for  Available Recipient Types for Email Alerts

Please refer this below code . In this example, email__c is picklist with emails 
trigger Acc on Account (after insert) {
        if(Trigger.isInsert ){ 
            //  Account acc =[0];
            //list of emails
            List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>();
            for(Account acc :{ 
                Messaging.SingleEmailMessage mail = 
                    new Messaging.SingleEmailMessage();
                // Step 2: Set list of people who should get the email
                List<String> sendTo = new List<String>();
                // Step 3: Set who the email is sent from
                mail.setSenderDisplayName('Official Bank of Nigeria');
                // (Optional) Set list of people who should be CC'ed
                List<String> ccTo = new List<String>();
                // Step 4. Set email contents - you can use variables!
                mail.setSubject('URGENT BUSINESS PROPOSAL');
                String body = 'messgae ';
                // Step 5. Add your email to the master list