Receive Email

  • Thread starter Thread starter Windy
  • Start date Start date
W

Windy

Dear Sirs,

After much searching on the internet I have found no answer to the following
question:

How can I cause Outlook to check for new mail, and if finding any,
downloading it to my inbox? I wish to do this with outlook closed. As far as
I can tell there is no SendAndReceive method available!! I had a look at the
redemption library, but the following seems to do very little!...

Dim test As Redemption.MAPIUtils


Private Sub Command1_Click()
test.DeliverNow
End Sub

Private Sub Form_Load()
Set test = CreateObject("Redemption.MAPIUtils")
End Sub


I would strongly prefer to not use the redemption library, and if anyone can
guide me towards a solution I'd be very grateful.

Thanks,

Windy
 
Thanks for the response. Your suggestion requires that Outlook be open
doesn't it? That's a really large prob :(. Does anyone know if Microsoft has
included this functionality in Outlook 2003? Hope so!

Thanks again,

Windy
 
Yes, at least one explorer must be open. MS does know about this problem,
but it will not be fixed in Outlook 2003 to the best of my knowledge. I'd
love to be wrong of course.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
My knowledge of MAPI is a little more advanced than that! The only way
around this I can think of is by opening outlook, hiding the window using
the Win32 API, executing the send receive button then shutting Outlook. Bit
of a pain, but what ya gonna do?

Thanks for the help,

Windy
 
Back
Top