A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Forcing Send only - OUTLOOK



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 21st 07, 08:00 AM posted to microsoft.public.outlook.program_vba
Ludo
external usenet poster
 
Posts: 5
Default 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
  #2  
Old December 21st 07, 10:35 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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

  #3  
Old December 21st 07, 12:29 PM posted to microsoft.public.outlook.program_vba
Ludo
external usenet poster
 
Posts: 5
Default 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 -


  #4  
Old December 22nd 07, 10:15 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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 -

  #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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Outlook forcing area code on mobile numbers Jisher Outlook - Using Contacts 1 August 22nd 07 03:26 PM
FORCING RPC OVER HTTP-OUTLOOK 2003/2007 Dave Durand Outlook - Installation 1 May 12th 07 02:59 AM
Forcing the "Send teh response now" option when accepting a meetin justinmarthaler Outlook - Calandaring 2 January 11th 07 04:17 AM
Forcing AutoArchive to run Art Billings Outlook - Installation 1 September 28th 06 10:16 PM
Outlook Checking Forcing sequential check of multiple pop accounts Eric Outlook - General Queries 4 July 19th 06 05:03 PM


All times are GMT +1. The time now is 08:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.