Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Forcing Send only - OUTLOOK (http://www.outlookbanter.com/outlook-vba/63661-forcing-send-only-outlook.html)

Ludo December 21st 07 08:00 AM

Forcing Send only - OUTLOOK
 
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

Michael Bauer [MVP - Outlook] December 21st 07 10:35 AM

Forcing Send only - OUTLOOK
 


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:

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


Ludo December 21st 07 12:29 PM

Forcing Send only - OUTLOOK
 
On Dec 21, 10:35*am, "Michael Bauer [MVP - Outlook]"
wrote:
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



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- Hide quoted text -


- Show quoted text -



Sue Mosher [MVP-Outlook] December 21st 07 01:52 PM

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


Michael Bauer [MVP - Outlook] December 22nd 07 10:15 AM

Forcing Send only - 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:

On Dec 21, 10:35*am, "Michael Bauer [MVP - Outlook]"
wrote:
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



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- Hide quoted text -


- Show quoted text -



All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com