Office 365 Send Mail - Object reference not set to an instance of an object

Hi Community, I’m getting an error using the activity call “Send Mail” which should be use within a “Microsoft Office 365 Scope”. I know is error usually appears when you have a variable that is empty. But, I have hard coded all the properties and still getting this error. Any help would be highly appreciated. BTW there arent any attachements defined

@svillalobos

Please can you try filling the From field and check if that works.

Thanks @SowmyaLeo for your reply. I tried it. But, didn’t work. I also tried updating the “Account” field as well, still nothing

Hello, @svillalobos,

Have you found a solution for that?
I have the same issue.


I tested also with HTML body and with value int the “Account” field ( under input ).

Regards,
Radu

Unfortunately no. I ended up using outlook activities instead.

Hello, @svillalobos,

Thanks for your reply.

The whole Office365 Activities package has issues.
I will try another Activities package also.

Regards,
Radu

I was having the same problem.
I added a file that actually exists to “AttachmentsCollection” and it worked for me.

Didn’t figured out yet how to actually send the email without attachments.

1 Like

Thanks @Pedro_Correia this brings more light. So we now know that is the attachment property that is causing the problem. Probably was a problem when creating the reusable component.

1 Like

I was able to fix it. Just create an empty collection and add there.

1 Like

Great idea. This is a good work around.

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