Not able to find sender name from Outlook mail

Hello Team,
i was facing issue while reading mail from outlook , When Try to get value of sender name with (item.from.address) it is showing error NULL reference ,i think it may be happening because of config issue ,But all the rest info working fine like (item.body.Tostring),(item.subject.Tostring)

need some help for this issue
thanx in Advance

Hi @prathamesh.c

Refer the below xaml File To Read the Mail Information
ReadOutlookSample.xaml (7.2 KB)

Convert.ToString(item.From.Address)

Hey there,
Use item.From.Address.ToString instead of item.Sender.Tostring

We can use the below property to get the sender name, it has worked for me.

item.From.DisplayName

IT IS NOT ALL WORKING !!! PLEASE GIVE SOLUTION TO ‘HOW TO GET THE SENDER’S ADDRESS IN OUTLOOK’

1 Like

Hello Lucky121,
I have the same problem ?
Did you solve it ?
Best regards,
David

Hi David,

Use
mail.From.DisplayName
It will work fine.
Cheers :slight_smile:

Has anyone been able to resolve this? @Sahil_Garg @david.wouters @lucky121 @prathamesh.c We’re getting “null” for the Sender however everything else works.

I’ve tried all the approaches in the various posts I found about this and no luck.

Interestingly, it only seems to happen to certain emails and we haven’t been able to find a pattern yet to work with.