Working with Redemption Dll version 6.3.0.6164
When I try to send a mail from a program, always appears a popup from Outlook asking for the password. And if i enter the pwd, they ask again, and again, and again ...
Here is the code i use :
Dim Sessio As Redemption.RDOSession
Dim Inbox As Redemption.RDOFolder
Dim Msg As Redemption.RDOMail
Dim s As String
Sessio = New Redemption.RDOSession
Sessio.LogonHostedExchangeMailbox(Mailuser, Mailuser, Pwd)
Inbox = Sessio.GetDefaultFolder(Redemption.rdoDefaultFolders.olFolderInbox)
Msg = Inbox.Items.Add
Msg.To = "XXXXX@gmail.com"
Msg.Body = "Test"
Msg.SenderEmailType = "EX"
Msg.Subject = "Test"
Msg.Save()
Msg.Send()
Sessio.Logoff()
Inbox = Nothing
Sessio = Nothing