Hi all,
How can the following VBA code be written in COBOL?
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "address@dot.com"
.Subject = "test "
.SendUsingAccount = OutApp.Session.Accounts.Item(2)
'.HTMLBody = "test"
.Send
End With
Set OutMail = Nothing
Set OutApp = Nothing
In other words, I want to send an email using NOT the default account. In the example above, I want to use the second of the collection of accounts.
This has been asked three times in tha past but with no answer...
Thank you.