Hi folks! :O)
I need to take a email from a given mailbox and forward it to another
mailbox.
The code we had in VB 6 looked like this one :
'***
Dim objMsg As Object
Dim objFwd As Object
' get the mail we need to forward
Set objMsg = CreateObject("CDO.Message")
objMsg.DataSource.Open strMsgAddr, , 3, , , strUsername, strPassword
' create the forward mail, update the addresses
' and sends the mail
Set objFwd = objMsg.Forward
objFwd.To = strToAddr
objFwd.From = strFromAddr
objFwd.send
'***
since i need to convert this code into VB.NET code, I was wondering if CDO
was still the way to go ?
also, how would .NET (via CreateObject()) handles late-binding ? does it
create an interop-wrapper assembly at runtime ? is it slower than it was
before the "managed Era"...
and finally I's like to wish a Happy New Year to all you !! :OD
--
Best Regards
Yanick