I have a requirement where the ‘from address’ need to be changed . According to business logic cannot use “Organization wide email address”
When ever the record is updated , From address should display Record Owner Name not the one who updated the record .
mail.setReplyTo(record owner email); mail.setSenderDisplayName('record owner name');
Error : In ‘From Address’ It should display only the record owner name not the one who updated the record**([mailto :[email protected]])**
From: record owner name [mailto :[email protected]] Sent: Friday, February 19, 2016 11:27 AM