I am creating outlook pst file ,It is storing message but in draft form and whenever I open this message, it is showing a line "This message has not been sent"

Add-in Express™ Support Service
That's what is more important than anything else

I am creating outlook pst file ,It is storing message but in draft form and whenever I open this message, it is showing a line "This message has not been sent"
In this message I am not able to give send and receive time .Please tell me ,how will i give send and receive time 
shiv pratap




Posts: 1
Joined: 2010-10-19
Dim app As New Microsoft.Office.Interop.Outlook.Application()

Dim ns As Microsoft.Office.Interop.Outlook.NameSpace = app.GetNamespace("MAPI")

fol2 = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)

ns.AddStore("C://Outlook.pst")

Dim a As Microsoft.Office.Interop.Outlook.MailItem = app.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)

a = app.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)



a.To = "mail@check.com"

a.CC = "checkmail@check.com"

a.Subject = "how are you ......"

a.SentOnBehalfOfName = "checkmailmailsystem@check.com"

a.HTMLBody = "<ht ml><body>red<br>Document for Visual Studio </body></html>"

a.UnRead = True

a.Move(fol2)



I will be thankful to you........

Note:- I have to open this message in window with (reply,forward,reply All option),sent time,receive time, If it is possible tell me?Â?Ð???Â?Ð??
Posted 19 Oct, 2010 00:37:47 Top
Andrei Smolin


Add-in Express team


Posts: 18791
Joined: 2006-05-11
Hi shiv,

An item should be actually sent in order to have that data.


Andrei Smolin
Add-in Express Team Leader
Posted 19 Oct, 2010 08:33:42 Top