I'm trying to force Outlook to send an email which I've added to the Outbox:
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?
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?