Forcing Send only - OUTLOOK

L

Ludo

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
 
L

Ludo

AFAIK, that's not possible. It was by using the commandbar technique
(http://www.outlookcode.com/d/tips/commandbarfun.htm), but is now blocked
for security reasons.

--
Best regards
Michael Bauer - MVP Outlook
  Synchronize Outlook Categories:
  <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Thu, 20 Dec 2007 23:00:07 -0800 (PST) schrieb Ludo:
Thanks Michael for the fast reply.

Now im still stuck with this problem!
Hoped there was a possibility to do so. :(
I don't see it only as a security case, but also to force people to
use MS OUTLOOK instead of using there own favorite mail program.
Using CDO isn't an option for the moment, i'm still running Win 98SE
with Office 2000.
Win 98 and Win ME can't use CDO as i found out on the internet.

Regards,
Ludo
 
S

Sue Mosher [MVP-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.
 
M

Michael Bauer [MVP - Outlook]

I don't understand your logic. If you want to work with your favorite e-mail
program, why don't you do so? If you can't automate that program by code,
certainly that's not the fault of Outlook.

Additionally to Sues great idea, if you're looking for a way to send e-mails
you could also use e.g. the WinSock control, which ships at least with VB6.

--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Fri, 21 Dec 2007 03:29:32 -0800 (PST) schrieb Ludo:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top