Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / August 2006

Tip: Looking for answers? Try searching our database.

Programming Outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doctor Who - 01 Aug 2006 11:43 GMT
Hello I am programming Outlook using C# and I need some help to do the
following:

1. Move Items to a non-default mail folder that I created: In my case I
have created a folder called "Backup" which was created at the root
level. I have seen examples of how to access standard folders such as
the Inbox and also child folders created under the Inbox, but how do I
gain access to a custom mail folder created at the root level.

2. How can I programmatically send (properly formatted) reply emails to
emails I have received.

Thanking you in advance.
Ken Slovak - [MVP - Outlook] - 02 Aug 2006 14:29 GMT
Root level? Is it visible in the UI? If so it would probably be accessed as:

myFolder = oNameSpace.Folders.Item("Backup");

Formatted how?

If you get a handle to an email you can call its Reply function and get back
a reply mail item.

See www.outlookcode.com for lots of Outlook programming examples, including
C#.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hello I am programming Outlook using C# and I need some help to do the
> following:
[quoted text clipped - 9 lines]
>
> Thanking you in advance.
Doctor Who - 03 Aug 2006 07:29 GMT
Thanks Ken,

I have been trying to use the reply method of the mailitem but doesn't
appear to work (or maybe I do not undertsand how it works).

In the application that I am writing I loop through all items in my
inbox and for certain emails I parse the message body and accordingly
take some actions such as move the email to another folder and
sometimes  send a reply message to the originator. What I meant by
'formatted reply' was add the RE prefix to the subject of original
message, have the oroginal message in the reply's body with the email
header information and a line separator just as you get when you
manually reply to an email.

Cheers,
Ken Slovak - [MVP - Outlook] - 03 Aug 2006 14:08 GMT
If you use the Reply function the RE:, etc. are added automatically.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Thanks Ken,
>
[quoted text clipped - 11 lines]
>
> Cheers,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.