I am trying to send mail but it shows “object reference not set to instance of an object”
Does anyone know the reason for this?
can you check the value of the argument which you have passed
ScreenshotPath argument
before to the send smtp message activity
in immediate, i checked. A file path is available.
This generally occurs when you are passing any variable (As argument) whose value has not been initialized. Request you to kindly cross check the values of the variables.
Before the send SMTP Mail Message put a log message for screenshotPath this will give us correct idea
Hi @Mohammad.Fuad,
I see errors before the Send SMTP Mail Activity as well in your attached screenshot.
As for the mail exception, try out the below steps:
-
Check whether attachment is empty or not before sending the mail
-
Complete the UiPath Email Prerequisite steps for gmail
-
Verify SMTP PortNumber and Server : Eg: Gmail Port: 587 Host:“smtp.gmail.com”
Hope this helps.
Regards,
Geetishree Rao
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.