B
bill
All,
I am attempting to use a VB.net timer with MS Outlook. I have created
an Outlook add-in using VSTO. It "seems" to more or less work, but not
reliably. I have added a System.Windows.Forms.Timer named
timerSendMail to the ribbon. When Outlook starts up it also starts the
timer. The timer is enabled and has an interval of 10 minutes (600000
milleseconds). The code is simple:
Private Sub timerSendMail_Tick(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles timerSendMail.Tick
sendMail()
End Sub
It has managed to wake up a send some email every 10 minutes when I
have been testing it. When it wakes up, the function sendMail() looks
for a particular file and if the file exists it will send an email. It
even managed to wake and send some email this very morning at 4:00 AM
(not that the time matters). Unfortunately, as of this afternoon, it
does not work anymore. Outlook has been open the entire time.
Any thoughts, or tips, or suggestions on a different approach to
programmatic email would be greatly appreciated.
TIA,
Bill
I am attempting to use a VB.net timer with MS Outlook. I have created
an Outlook add-in using VSTO. It "seems" to more or less work, but not
reliably. I have added a System.Windows.Forms.Timer named
timerSendMail to the ribbon. When Outlook starts up it also starts the
timer. The timer is enabled and has an interval of 10 minutes (600000
milleseconds). The code is simple:
Private Sub timerSendMail_Tick(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles timerSendMail.Tick
sendMail()
End Sub
It has managed to wake up a send some email every 10 minutes when I
have been testing it. When it wakes up, the function sendMail() looks
for a particular file and if the file exists it will send an email. It
even managed to wake and send some email this very morning at 4:00 AM
(not that the time matters). Unfortunately, as of this afternoon, it
does not work anymore. Outlook has been open the entire time.
Any thoughts, or tips, or suggestions on a different approach to
programmatic email would be greatly appreciated.
TIA,
Bill