How can I assign a mail sender?

Hello guys,

quick question:

How can I assign a mail sender if I let the bot look for the last 30 mails in “Inbox” in a For Each-Acitvity?

I want to add the assign in the For Each-Activity, in case the bot finds a mail without a sender.

Thanks in advance,
Dennis :slight_smile:

PS: I tried to assign to mail.sender → “noreply@gmail.com”, but that didnt work.
Sadly, I am not able to upload a picture to this topic because of an internal error.

1 Like

Hey @bibalesecret

First thing is I’m a bit surprised on how can an email present in “Inbox” without a sender, please ?

Thanks
#nK

I was confused too, but here I have a case where the mail comes from the exchange server called “Systemadministrator”, which hasn’t got a sender :smiley:

And I can’t forward the mail without a sender.
UiPath gives me the error, that the Object is not set to an instance of an object.

1 Like

Hey @bibalesecret

When we normally forward an email we need to set sender.

So what I understood is you are trying to forward from UiPath and you are assigning the sender before the forward step, Is that correct ?

Thanks
#nK

1 Like

Cross Reference:

1 Like

Correct. I solved it with the help of peter.
I assigned the value new MailAddress(“Systemadministrator@test.com”,“Systemadministrator Systemadministrator”)
to mail.sender.

Now, it works :slight_smile:

cool great :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.