PC Review


Reply
Thread Tools Rate Thread

Code to Save Email as an .MSG to Directory when Emails Arrive

 
 
John
Guest
Posts: n/a
 
      12th May 2010
I am trying to save all emails that come into the inbox as an .MSG to a
directory on the server. I saw the ability to utilize the SAVEAS method but
have no idea how to implement that to work as emails arrive. Any code help
would be greatly appreciated.

Thanks in advance
John

 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      13th May 2010


This example requires that the directory exists already:
http://www.vboffice.net/sample.html?...7&cmd=showitem

It works only if Outlook is running while you receive the message.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
<http://www.vboffice.net/product.html?lang=en>


Am Wed, 12 May 2010 08:51:01 -0700 schrieb John:

> I am trying to save all emails that come into the inbox as an .MSG to a
> directory on the server. I saw the ability to utilize the SAVEAS method

but
> have no idea how to implement that to work as emails arrive. Any code

help
> would be greatly appreciated.
>
> Thanks in advance
> John

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      13th May 2010
Hey Michael,

Sounds great...I change the path to a network path does it matter which way
that I put the path should it be hard coded like \\ServerName\Folder or
should it be like P:\Folder is the Drive is mapped on the computer running
outlook. For some reason I am not getting an error message but it is not
putting the file in the folder. When I tried to do it as a test to my
C:\Temp I actually got a permissions error for some reason.

Thanks again for all your help

"Michael Bauer [MVP - Outlook]" wrote:

>
>
> This example requires that the directory exists already:
> http://www.vboffice.net/sample.html?...7&cmd=showitem
>
> It works only if Outlook is running while you receive the message.
>
> --
> Best regards
> Michael Bauer - MVP Outlook
> Category Manager - Manage and share your categories:
> SAM - The Sending Account Manager:
> <http://www.vboffice.net/product.html?lang=en>
>
>
> Am Wed, 12 May 2010 08:51:01 -0700 schrieb John:
>
> > I am trying to save all emails that come into the inbox as an .MSG to a
> > directory on the server. I saw the ability to utilize the SAVEAS method

> but
> > have no idea how to implement that to work as emails arrive. Any code

> help
> > would be greatly appreciated.
> >
> > Thanks in advance
> > John

> .
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      13th May 2010
Hey Michael,

Disregard my message I figured out my error. Thanks so much for you help it
works perfectly.

Have a great one!

John


"John" wrote:

> Hey Michael,
>
> Sounds great...I change the path to a network path does it matter which way
> that I put the path should it be hard coded like \\ServerName\Folder or
> should it be like P:\Folder is the Drive is mapped on the computer running
> outlook. For some reason I am not getting an error message but it is not
> putting the file in the folder. When I tried to do it as a test to my
> C:\Temp I actually got a permissions error for some reason.
>
> Thanks again for all your help
>
> "Michael Bauer [MVP - Outlook]" wrote:
>
> >
> >
> > This example requires that the directory exists already:
> > http://www.vboffice.net/sample.html?...7&cmd=showitem
> >
> > It works only if Outlook is running while you receive the message.
> >
> > --
> > Best regards
> > Michael Bauer - MVP Outlook
> > Category Manager - Manage and share your categories:
> > SAM - The Sending Account Manager:
> > <http://www.vboffice.net/product.html?lang=en>
> >
> >
> > Am Wed, 12 May 2010 08:51:01 -0700 schrieb John:
> >
> > > I am trying to save all emails that come into the inbox as an .MSG to a
> > > directory on the server. I saw the ability to utilize the SAVEAS method

> > but
> > > have no idea how to implement that to work as emails arrive. Any code

> > help
> > > would be greatly appreciated.
> > >
> > > Thanks in advance
> > > John

> > .
> >

 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      20th May 2010
John,

What was your error. I too am not getting anything saved to the file.

Chris

"John" wrote:

> Hey Michael,
>
> Disregard my message I figured out my error. Thanks so much for you help it
> works perfectly.
>
> Have a great one!
>
> John
>
>
> "John" wrote:
>
> > Hey Michael,
> >
> > Sounds great...I change the path to a network path does it matter which way
> > that I put the path should it be hard coded like \\ServerName\Folder or
> > should it be like P:\Folder is the Drive is mapped on the computer running
> > outlook. For some reason I am not getting an error message but it is not
> > putting the file in the folder. When I tried to do it as a test to my
> > C:\Temp I actually got a permissions error for some reason.
> >
> > Thanks again for all your help
> >
> > "Michael Bauer [MVP - Outlook]" wrote:
> >
> > >
> > >
> > > This example requires that the directory exists already:
> > > http://www.vboffice.net/sample.html?...7&cmd=showitem
> > >
> > > It works only if Outlook is running while you receive the message.
> > >
> > > --
> > > Best regards
> > > Michael Bauer - MVP Outlook
> > > Category Manager - Manage and share your categories:
> > > SAM - The Sending Account Manager:
> > > <http://www.vboffice.net/product.html?lang=en>
> > >
> > >
> > > Am Wed, 12 May 2010 08:51:01 -0700 schrieb John:
> > >
> > > > I am trying to save all emails that come into the inbox as an .MSG to a
> > > > directory on the server. I saw the ability to utilize the SAVEAS method
> > > but
> > > > have no idea how to implement that to work as emails arrive. Any code
> > > help
> > > > would be greatly appreciated.
> > > >
> > > > Thanks in advance
> > > > John
> > > .
> > >

 
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
Re: Some emails arrive, others don't Brian Tillman Microsoft Outlook 2 18th Jun 2008 08:01 PM
sent emails don't arrive Tony Webb Microsoft Outlook Discussion 3 7th Mar 2008 01:46 PM
Why do my HTML emails arrive in HTML code? =?Utf-8?B?U2t1bGxkdWRl?= Microsoft Outlook Discussion 3 5th Feb 2007 05:08 AM
vba script code - for emails and creating directory as req'd: =?Utf-8?B?amF0bWFu?= Microsoft Excel Programming 1 6th Sep 2006 04:15 PM
Lost EMAILS? Emails downloaded from POP3 server do not arrive in inbox Michael Schaefer Microsoft Outlook Discussion 3 22nd Mar 2004 10:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 AM.