Re: Problem with MailItem.Move
From: Ken Slovak - [MVP - Outlook] (kenslovak_at_mvps.org)
Date: 02/08/05
- Previous message: Vedanshu Mandvikar via OfficeKB.com: "Problem with MailItem.Move"
- In reply to: Vedanshu Mandvikar via OfficeKB.com: "Problem with MailItem.Move"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Feb 2005 11:27:07 -0500
Moving an item to Outbox does nothing but put that item in that folder. It
does not submit it to the transport mechanism. To do that you need to open
the item and send it in the UI or use the Send method of the item.
-- 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 "Vedanshu Mandvikar via OfficeKB.com" <forum@OfficeKB.com> wrote in message news:43da073a9905459e8f4bd407a70e6896@OfficeKB.com... > Hi, > > I am creating a mail item and moving it to the outbox folder as shown > below... > > > MailItem cb = (MailItem)outappclass.CreateItem(OlItemType.MailItem) > > Outlook.NameSpace olNs = olApp.GetNamespace("MAPI") > > Outlook.MAPIFolder oFolder = olNs.GetDefaultFolder > (Outlook.OlDefaultFolders.olOutBox); > > > // Some code here to set the various properties of mailitem... > > try > { cb.Move(oFolder);} catch{} > > ......... > The mail item gets created in Outlook, but when I open Outlook and click > on > send recieve....the Item is not sent....In fact nothing happens.. I have > to > manually open the mail message and then click on its send button to send > it.... > > Please help me as I have to soon submit an application based on above. > > Thanks > > Vedanshu Mandvikar > > -- > Message posted via http://www.officekb.com
- Previous message: Vedanshu Mandvikar via OfficeKB.com: "Problem with MailItem.Move"
- In reply to: Vedanshu Mandvikar via OfficeKB.com: "Problem with MailItem.Move"
- Messages sorted by: [ date ] [ thread ]