View Single Post
  #5  
Old December 21st 07, 01:52 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forcing Send only - OUTLOOK

What about this approach: Create a new send/receive group that, for each account, only sends and does not receive. When you need to deliver sent messages programmatically, return the SyncObject representing that send/receive group from the SyncObjects collect. Then call SyncObject.Start.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Ludo" wrote in message ...
Hi experts,

Is there a way to, using VBA code, to prevent OUTLOOK to receive the
messages on the server side when sending mails out?

I need to ONLY send mails with OUTLOOK, but NOT receiving.
Reason is the use of different mail clients (Outlook Express,
Mozilla, ...) on different pc's and i don't want that the mails are
downloaded from the server and arrive in the OUTLOOK inbox, while the
user use the mailbox from his default (NOT OUTLOOK) mail program as
Mozilla, Outlook Express, ...

Can you provide me the vba code i need to add into my send mail
subroutine?
I guess it's only one or two lines of code.

Regards,
Ludo

Ads