Free Support Forum -

How to bind the date when send mail

Hi sir,

             I send to mail to my account i update the date current date and sender name also like  this

Dim mapiMsg As MapiMessage = MapiMessage.FromMailMessage(copyfolder + “” + dynamicFilename + “.msg”)
'Dim ms As MemoryStream = New MemoryStream()
mapiMsg.ClientSubmitTime = DateTime.Now
mapiMsg.SenderName = FirstUseReg.GetValue(“Emailaddress”)
mapiMsg.SenderEmailAddress = FirstUseReg.GetValue(“Emailaddress”)
mapiMsg.Save(copyfolder + “” + dynamicFilename + “.msg”)
Dim mapiMsg1 As MapiMessage = MapiMessage.FromMailMessage(copyfolder + “” + dynamicFilename + “.msg”)
mapiMsg1.Save(copyfolder + “” + dynamicFilename + “.msg”)
after i save the message.

But the date not display it display none

I need solution for this ASPA

Screenshot_1.png (19.8 KB)
Screenshot_1.png (19.8 KB)


I have observed the issue shared by you and request you to please try using latest Aspose.Email for . NET 20.4 on your end. In case there is still an issue then please share the source file along with generated MSG file and MS Outlook version used on your end.


Thaks for ur reply same issue not resolve in new version also. i send the msg file

ms outlook version
image.png (5.8 KB)

Screenshot_2.png (3.0 KB) (3.2 KB)


Thank you for sharing the information. Can you please share the source file that you have used in your sample code.


what is status I send the rar file. I write the code in " AdxOutlookAppEvents1.ItemSend " in this event. (3.1 KB)


I have worked with sample code and source file shared by you. I have then opened the saved MSG files in MS Outlook 2019 and have not been able to observe any issue. I used Aspose.Email for .NET 20.4 on my end.

Public Shared Sub TestMSGDate()
    Dim copyfolder As String = "C:\Users\mudas\Downloads\27May2020104114 (2)\27May2020104114\"
    Dim mapiMsg = MapiMessage.FromMailMessage(copyfolder & "27May2020104114.msg")
    mapiMsg.ClientSubmitTime = DateTime.Now
    mapiMsg.SenderName = "Emailaddress"
    mapiMsg.SenderEmailAddress = ""
    mapiMsg.Save(copyfolder & "Test.msg")
    Dim mapiMsg1 As MapiMessage = MapiMessage.FromMailMessage(copyfolder & "Test.msg")
    mapiMsg1.Save(copyfolder & "Test2.msg")
End Sub (6.0 KB)

@mudassir.fayyaz U can convert that mail i send, but u can send mail from u on that date not come and that mail store in local storage u open that mail date not come pls check.


Pls send mail from send button click not converts.


I am sorry, I didn’t get your words properly. If I have understood right, I have used the same sample code and same source file that you have shared with me. I only tested that using Aspose.Email 20.4 on my end and shared the resultant MSG files and snapshot too where there is no issue observed. Can you please open the MSG files that I have shared with you and see if you are able to observe dates or not. If you are still unable to see the date part in my MSG files too, then please provide the MS Outlook version that you are using on your end so that we may verify that on our end too.


       Thanks for ur reply it work in outlook 2013,but in outlook 2010  not work same problem above i say. pls reply ASPA.


I have observed that now issue is centric to opening MSG file in MS Outlook 2010. A ticket with ID EMAILNET-39845 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be addressed.