Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Wednesday, 24 May 2017

Sending mail from outlook using UFT

Set Outlook = CreateObject ("Outlook.Application")


Dim Message 'As Outlook.MailItem


Set Message = Outlook.CreateItem(olMailItem)


With Message
.Subject = Subject
.HTMLBody = TextBody
.Recipients.Add (aTo)
Const olOriginator = 0
.Send
End With