Re: How to hide "This message has not been sent" message in Outloo

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello Dmitry,

I don't have a problem *creating* the mail message, it's about the delivery
status (not sent) that is stored in the DMS that I would like to loose.

What is a 'post' item anyway? I know of Mail items, Note items etc. I really
need to create a Mail item, since I want to send an e-mail. Using the
'OnSend' handler, which is associated with the Send button, I register a file
version of the e-mail in the DMS.

regards,
Peter

"Dmitry Streblechenko" wrote:

I don't think I understand - Application.CreateItem will create the message
in the corresponding default folder. For the regular mail messages you will
end up with a message in the Drafts folder.
Use Items.Add instead to create a post item rather than a mail item.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B74242A4-950F-4B98-B5EB-AC4AACC60AC2@xxxxxxxxxxxxxxxx
Hi Dmitry,

The mail item is created from another application (the DMS explorer) using
.NET and the Outlook.Application class using the CreateItem() method.

Registering the e-mail is done using an Outlook add-in, to prevent
unwanted
Outlook warning messages.

regards,
Peter

"Dmitry Streblechenko" wrote:

How do you create the messages in the Outbox?
In case of OOM only you might be able to create a post item (which are
created in the sent state), then change the mesage class back to
IPM.Note.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2D10BD89-B94D-4B0A-870D-727F275D07AA@xxxxxxxxxxxxxxxx
Hi all,

I'm using an add-in to store (some) outgoing Outlook e-mails in a DMS.
Since it's stored *before* the message is actually sent, the send
status
of
the message is 'not sent' in the DMS.
When users reopen the message from the DMS, they are confused, since
Outlook
will say "This message has not been sent".

Does anyone have an idea of how to suppress this message?

If the event handlers would work properly, I could delay adding the
message
to the DMS until it appears in the Sent-Items folder, but that can have
side-effects, for example, if message delivery is deferred or if the
message
cannot be delivered for some reason. The message should be stored in
the
DMS
right away, but preferrably, without any delivery status information.

Peter







.


Quantcast