0
votes

I write an outlook add-in and I am new to it, so please elaborate.

When I am offline and attempt to send an MailItem, the MailItem is moved to outbox. However, I noticed (as per screenshot below), that it has "draft" icon and no date.

As a result, when I get online, it will never get sent.

How do I move it to outbox folder but have it land there not as a draft?

I move it lilke this:

(myItem as MailItem).Move(myOutboxFolder);

enter image description here

1

1 Answers

1
votes

Why do you expect a message moved to the Outbox folder to become sent? You need to create it in the sent state (it cannot be changed later), and that means you can only create a PostItem, not MailItem.

To send a message, you need to call MailItem.Send. Moving it to the Outbox will not sent it - Outbox is just an eye candy.