How to pass value to a UiPath.Mail.IMailQuickHandle (Datatype)

I am attempting to set up Outlook with my Zimbra mail server, but unfortunately, I don’t have the necessary access for configuration.

My objective is to utilize the ‘Send Calendar Invite’ activity, which requires an ‘account’ property for the sender’s email ID. Upon inspecting the datatype, I observed that it expects a UiPath.Mail.IMailQuickHandle, making passing a string useless. Essentially, it won’t accept a string as input.

Any Solution to this would be very helpful !!

Additionally, I’ve considered another scenario where I can’t use any Outlook activity that requires a UiPath.Mail.IMailQuickHandle as input for a dynamically changing sender account. This is because such configurations need to be set up for each account, and they can be changed programmatically during runtime, making a challenge.

Edit 1 :- Also i wasnt able to find any SMTP Calendar Invite Activity or C#/VB Code for it online that can be an alternative to this , neither HTML Body will help (Not 100% sure about HTML one tbh)

You use the reference from the scope container:

image

Have you tried to generate an ics and mail it as attachment?

1 Like
  1. Pre-Configuration (If possible):**
  • If you have a small set of potential senders, pre-configure these accounts in UiPath. Dynamically select the right account at runtime.
  1. SMTP Approach:**
  • Use the “Send SMTP Mail Message” activity.
  • Construct the calendar invite in iCal format yourself (can be complex).
  1. Third-Party Libraries:**
  • Explore .NET libraries for mail and iCal formatting to simplify the SMTP approach.

Note:

SMTP Access:** Verify if your Zimbra server allows standard SMTP connections.
Library Restrictions:** Check if you can use external libraries in your UiPath project.

1 Like

no i havent , could u explain whats that?, are they calendar invite files?