Ashok
2008-09-09 11:29:01 UTC
Hi Everyone,
In outlook 2007, the following code is not working properly. This is add-in
project built using Visual basic 6.0.
----------------------------------------
Set oOutbox = m_oOutlook.Session.GetDefaultFolder(olFolderOutbox)
oMovedMail.Item = oCurMail.Move(oOutbox)
oMovedMail.Send
Variable usage FYI...
Dim oCurMail as object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Parameter
ByRef objMail As Outlook.MailItem
Dim oMovedMail As Object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Get the current mail item.
oCurMail.Item = objMail
Dim oOutbox As Object
----------------------------------------
The followings are the observations;
Case 1 : Some time, the mail is going out to the receiver, but it stayed at
outbox.
Case 2 : Some time, the mail is not all going out, it stayed at outbox itself.
Could you please tell that what is the actual issues which cause the
functionality? Do I need to change the coding flow for outlook 2007?
Note : This is absolutely working fine in prior to 2007.
I pasted only the important code fyi. I ensure that there is no runtime err
or logical err.
Your adivse would be appreciated on this.
Thx in Advance,
Ashok
In outlook 2007, the following code is not working properly. This is add-in
project built using Visual basic 6.0.
----------------------------------------
Set oOutbox = m_oOutlook.Session.GetDefaultFolder(olFolderOutbox)
oMovedMail.Item = oCurMail.Move(oOutbox)
oMovedMail.Send
Variable usage FYI...
Dim oCurMail as object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Parameter
ByRef objMail As Outlook.MailItem
Dim oMovedMail As Object
Set oCurMail = CreateObject("Test.USafeMailItem")
' Get the current mail item.
oCurMail.Item = objMail
Dim oOutbox As Object
----------------------------------------
The followings are the observations;
Case 1 : Some time, the mail is going out to the receiver, but it stayed at
outbox.
Case 2 : Some time, the mail is not all going out, it stayed at outbox itself.
Could you please tell that what is the actual issues which cause the
functionality? Do I need to change the coding flow for outlook 2007?
Note : This is absolutely working fine in prior to 2007.
I pasted only the important code fyi. I ensure that there is no runtime err
or logical err.
Your adivse would be appreciated on this.
Thx in Advance,
Ashok