Hi,
I am trying to capture the sender full name from email using email handler. I am able to capture the email ID using
def fromAddr = MailUtils.getSenders(message)
def EmailID = cfvalue?.replaceAll(/^\[([\s\S]*)]$/,'$1')
but how to get sender full name from it?
I tried message.getFrom() but is giving me output as below
["FrirstName LastName" <fristname.lastname@gmail.com>]
How to split the output to get full name if there is no other function available.
Thanks,
Om