Group:  Microsoft Outlook ยป microsoft.public.outlook.interop
Thread: Programming Outlook

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Programming Outlook
"Doctor Who" <marinos[ at ]theovatech.com> 01.08.2006 10:43:57
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.

Re: Programming Outlook
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 02.08.2006 13:29:04
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#.

--
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


"Doctor Who" <marinos[ at ]theovatech.com> wrote in message
news:1154429037.169631.221510[ at ]m73g2000cwd.googlegroups.com...
[Quoted Text]
> 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.
>

Re: Programming Outlook
"Doctor Who" <marinos[ at ]theovatech.com> 03.08.2006 06:29:08
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,

Re: Programming Outlook
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 03.08.2006 13:08:38
If you use the Reply function the RE:, etc. are added automatically.

--
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


"Doctor Who" <marinos[ at ]theovatech.com> wrote in message
news:1154586547.993997.67740[ at ]i42g2000cwa.googlegroups.com...
[Quoted Text]
> 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,
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net