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 / February 2005

Tip: Looking for answers? Try searching our database.

Problem with MailItem.Move

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vedanshu Mandvikar - 08 Feb 2005 14:56 GMT
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
Ken Slovak - [MVP - Outlook] - 08 Feb 2005 16:27 GMT
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.

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

> Hi,
>
[quoted text clipped - 26 lines]
>
> Vedanshu Mandvikar
 
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



©2009 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.