MailMessage does not have instance of Save

I just installed the package Aspose.Email on UiPath and I’m trying to use their Save function using the invoke method.
It keeps giving me the error saying that the Save Method is not available, but it is present in the package. Where am i going wrong?


The error “‘MailMessage’ does not have a public instance method named ‘Save’…” is because your Invoke Method activity is trying to call the “Save” method of the MailMessage class. This method doesn’t exist, though. The method belongs to Aspose.Email.

I’m not familiar with Aspose, so I’m not sure on the details but you need to set up your Invoke Method so that it’s using Aspose.Email.Save and not MailMessage.Save.

Yeah, exactly. How do you invoke a method from a package, that is not a public instance?

Can you show me the properties of your Invoke Method activity?



Is item a System.Net.Mail.MailMessage or an Aspose.Email.MailMessage? The error sounds like it is a System.Net.Mail.MailMessage.


That’s perfect. I converted to Aspose.Email.MailMessage using the Load() method and it worked. Thanks so much!

1 Like

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