Send outlook email issue


#1

We are using “Read Outlook” activity to read some parameters from email then do some validations in another application using parameters. based on result we are forwarding email over same email, for that we are using “Send Outlook Mail Message” activity in process.
It’s wired sometime it fail and sometime “Send Outlook mail message” working fine. Here’s the error message we are getting.
“Send Outlook Mail Message: Object reference not set to an instance of object”

Please suggest what could be the reason


#2

Hello @ashok_sharma,

"Object reference not set to an instance of object” means that you are trying to use something that is null (or Nothing in VB.NET). This means you either set it to null, or you never set it to anything at all.

Check the parameters of the activity!

Regards,
Susana


#3

We checked all parameters; none of parameters returning NULL value. Suspecting that Forward --> MailMessage property has some issue. Currently we set it up as mail object. It’s working fine after removing value. Please suggest if you have anything.


#4

Hi,

You can go through these article to resolve Outlook email issues… it might be helpful for you…
https://sysinfotools.com/blog/outlook-express-and-outlook-send-receive-error/

Thanks