Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture Sender name from email handler

Omprakash Thamsetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2023

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

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.15
TAGS
AUG Leaders

Atlassian Community Events