Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Namespace object doesn't have .SendAndReceive - should it?

Status
Not open for further replies.

AndyGroom

Programmer
Joined
May 23, 2001
Messages
972
Location
GB
I'm trying to force Outlook to send an email which I've added to the Outbox:

Code:
   Set olApp = CreateObject("Outlook.Application")
   Set olNs = olApp.GetNamespace("MAPI")
   olNs.SendAndReceive False

The documentation suggests that the NameSpace object should have a .SendAndReceive method but mine doesn't. I'm assuming that's because I'm on Outlook 2003 and it was added in 2007. If I compile the code with that line in, should it work for people running Outlook 2007 or newer?


- Andy
___________________________________________________________________
If a man speaks in a forest and there are no women around to hear him - will he still be wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top