Any update to this? UiPath still does not allow this functionality. 2020.10.2.
No compiled code to run
error BC30512: Option Strict On disallows implicit conversions from ‘Object’ to ‘Microsoft.Office.Interop.Outlook.MailItem’.
Sample Code - [RESOLVED][Outlook] How to send email-VBForums
Dim MSO As New Microsoft.Office.Interop.Outlook.Application
'Create a new Message object
Dim msg As Microsoft.Office.Interop.Outlook.MailItem
'Compose the Message
msg = MSO.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
msg.Subject = "This is an example message"
msg.To = "address@company.com"
'***ADD AN ATTACHMENT***
'This parameter just has to point to a valid file
msg.Attachments.Add("c:\test.txt")
'*******************************
'If you have SendOnBehalf permissions, you can specify a SOB user
'msg.SentOnBehalfOfName = "Some Other User"
''Create an HTML formatted body
'Dim body As String
'body = "<h1>This is an HTML Email</h1><p>Hello, here is a test message.</p>"
''Set the body format and contents
'msg.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML
'msg.HTMLBody = body
'Send the message
msg.Send()