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@example.com])**
From: record owner name [mailto :firstname.lastname@example.org] Sent: Friday, February 19, 2016 11:27 AM