PC Review


Reply
Thread Tools Rate Thread

Automating a Recieve Email command for Outlook 2003 for Pop3 Accounts

 
 
Paul Schrader
Guest
Posts: n/a
 
      20th Jun 2005
Hello All,

Does anyone have a snippet of code that will show how to Code in VB the
retrieve email ? I Need to Automate the retrieval of email for several of
our clients that use Outlook 2003 as they have a tendency to not leave
outlook open, thus tying up space on the server. It is well documented on
how to send and email but I have not been able to locate a way to retrieve
email Programmatically.

Thanks
Paul


 
Reply With Quote
 
 
 
 
Michael Bednarek
Guest
Posts: n/a
 
      20th Jun 2005
On Sun, 19 Jun 2005 21:29:30 -0400, "Paul Schrader"
<(E-Mail Removed)> wrote in
microsoft.public.outlook.program_vba:

>Does anyone have a snippet of code that will show how to Code in VB the
>retrieve email ? I Need to Automate the retrieval of email for several of
>our clients that use Outlook 2003 as they have a tendency to not leave
>outlook open, thus tying up space on the server. It is well documented on
>how to send and email but I have not been able to locate a way to retrieve
>email Programmatically.


What exactly do you mean by "retrieving"? You mention a server, so I
assume you're running Exchange; that server will receive e-mail for all
mailboxes whether any Outlook client is running or not.

Naturally, to see the messages Outlook needs to be running.

And what do you mean by "tying up space on the server" when Outlook is
not open? You're not using PST files on your clients, are you?

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 
Reply With Quote
 
Paul Schrader
Guest
Posts: n/a
 
      20th Jun 2005
Mike,

What I'm looking for is a way to programmatically execute a retrieve of
email for folks that are not on Exchange servers, so a scheduled task can be
added to retrieve email every 20-30 minutes without having to have Outlook
open. I have this working fine for people that use Outlook Express, but am
having a hard time locating any details on how to complete this for Outlook.

Thanks
Paul


"Michael Bednarek" <ROT13-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sun, 19 Jun 2005 21:29:30 -0400, "Paul Schrader"
> <(E-Mail Removed)> wrote in
> microsoft.public.outlook.program_vba:
>
>>Does anyone have a snippet of code that will show how to Code in VB the
>>retrieve email ? I Need to Automate the retrieval of email for several of
>>our clients that use Outlook 2003 as they have a tendency to not leave
>>outlook open, thus tying up space on the server. It is well documented on
>>how to send and email but I have not been able to locate a way to retrieve
>>email Programmatically.

>
> What exactly do you mean by "retrieving"? You mention a server, so I
> assume you're running Exchange; that server will receive e-mail for all
> mailboxes whether any Outlook client is running or not.
>
> Naturally, to see the messages Outlook needs to be running.
>
> And what do you mean by "tying up space on the server" when Outlook is
> not open? You're not using PST files on your clients, are you?
>
> --
> Michael Bednarek http://mbednarek.com/ "POST NO BILLS"



 
Reply With Quote
 
Michael Bednarek
Guest
Posts: n/a
 
      21st Jun 2005
On Mon, 20 Jun 2005 09:33:33 -0400, "Paul Schrader"
<(E-Mail Removed)> wrote in microsoft.public.outlook.program_vba:

>Mike,
>
>What I'm looking for is a way to programmatically execute a retrieve of
>email for folks that are not on Exchange servers, so a scheduled task can be
>added to retrieve email every 20-30 minutes without having to have Outlook
>open. I have this working fine for people that use Outlook Express, but am
>having a hard time locating any details on how to complete this for Outlook.
>
>Thanks
>Paul

[snip]

Maybe the Start method for the SyncObject does what you want. Try this:

Option Explicit
Dim sycs ' As Outlook.SyncObjects
Dim syc ' As Outlook.SyncObject
Dim i ' As Long

Set sycs = CreateObject("Outlook.Application").GetNamespace("MAPI").SyncObjects
For i = 1 To sycs.Count
Set syc = sycs.Item(i)
If MsgBox("Do you wish to synchronize " & syc.Name & "?", vbYesNo + vbQuestion, "MailSync") = vbYes Then
syc.Start
End If
Next

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 & 2007 POP3 recieve with multiple accounts very slow juggler314@gmail.com Microsoft Outlook 4 22nd Sep 2007 06:42 AM
Outlook 2003 Recieve error with 2 pop3 email accounts from same server JustinB181 Microsoft Outlook Discussion 5 4th Aug 2005 09:32 PM
Outlook 2003 - Junk email filter with multiple pop3 accounts =?Utf-8?B?RG9ubmE=?= Microsoft Outlook Discussion 0 18th Mar 2005 03:27 AM
outlook 2003 send pop3 and not recieve =?Utf-8?B?dGVtbWljaw==?= Microsoft Outlook Discussion 1 8th Nov 2004 09:33 PM
Outlook 2003 will not send or recieve mail for POP3 Steve Microsoft Outlook 1 18th Mar 2004 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 PM.