UiPath.Mail.SMTP.Activities.SendMail issue

Hi All,
I am facing an issue with the UiPath.Mail.SMTP.Activities.SendMail activity (package UiPath.Mail.Activities v1.23.11, UiPath Studio 2024.10.8). The fields are filled as follows in the screenshot below:


If I try to send the email, the activity is giving me the following exception:

Send SMTP Mail Message: Value cannot be null. (Parameter ‘key’)

On the other hand, I checked all the dynamic values and they seem to be correct and well written, also because I tried publishing the process to orchestrator and the run terminates with no errors, the email arrived to the recipient.

I tried uninstalling and installing again the package, but it didn’t fix the issue. Do you know what it could be and how could I manage this? Thanks a lot!

Cheers,
Riccardo

@RickyMasa

Can you refer below video,

Happy automation!!

It might be values are not passing to variables, use breakpoints to check all values are getting or not

Hi, thanks for your reply. I already checked and the values are correct, the error comes also testing the activity with hardcoded data and as I said it runs well from Orchestrator.

Hi @RickyMasa

For Send SMTP Mail Message activity you need to give Email and Password

Regards,

1 Like

Kindly go throw video once, if the same code is working from orchestrator it should from your local as well,
check whether the account which you need to send from is configured or not and also its better to debug your code, and just a take a look on attached video in above post