Regarding with .msg file (I want to set my own sent time and received time)

During creation of .msg file.Can we set sent time and received time in message.Can you provide me code for that.I am trying it.But I am not getting option there..............Please sir it is urgent,

(I want to set my own sent time and received time)

----------------------------------------------------------------------------

Dim msg As MailMessage = New MailMessage()

' Set recipients information
msg.To = "to@domain.com"
msg.CC = "cc@domain.com"

' Set the subject
msg.Subject = "Subject"

' Set Html body
msg.HtmlBody = "

Html Heading 3

This is underlined text"

' Add an attachment
msg.Attachments.Add(New Attachment("c:/check/image.jpg"))

' save it in local disk
Dim strMsg As String = "D:\ TestAspose.msg"
msg.Save(strMsg, MessageFormat.Msg)
Me.Close()

Hi,


Thank you for inquiry.

You can set the sent date and time using MailMessage.Date property. Currently, this property will set both the sent and received time. I have added a new feature request in our system (ID: 21217) to include separate properties for sent and received date.

Thank you,

On title bar Subject(Aspose.NetworkEvaluation) is writting.And a License.txt file is coming,

I want to know that for using it I will have to purchase Aspose.Network.dll file.

And after purchasing these line will not come in .msg file.From where I will get complete desription

Hi,


The details are mentioned at Licensing page.

You will need to purchase the license from https://purchase.aspose.com/buy page. After applying the license, all evaluation limitations will be gone e.g. evaluation version in subject title and license.txt attachment.

I am sending code which I am using Actually I have to save a message in Inbox folder of outlook, As I will open

this save message in Inbox folder.It should open with option (reply,reply to All,forward) .

With the help of Aspose dll file It is storing in my D drive sucessfully.And as I am opening it.It is opening with option (reply,reply to All,forward) .But as I am saving in outlook It is opening like a draft.

I have to open every time message with (reply,reply to All,forward) these option

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

inboxFolder = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox)

Dim msg As MailMessage = New MailMessage()

' Set recipients information

msg.To = to@domain.com

msg.CC = cc@domain.com' Set the subject

msg.Subject = "Subject"

' Set Html body

msg.HtmlBody = "

Html Heading 3

This is underlined text"

' Add an attachment

msg.Attachments.Add(New Attachment("c:/check/image.jpg"))

' save it in local disk

Dim strMsg As String = "D:\ TestAspose.msg"

msg.Save(strMsg, MessageFormat.Msg)

Dim inboxElement As Microsoft.Office.Interop.Outlook.MailItem

inboxElement = app.Application.CreateItemFromTemplate("D:\ TestAspose.msg")

inboxElement.Move(inboxFolder)

Hi,


Using Aspose.Network for .NET, you can only save message to disk or stream. Currently, we do not support adding MSG files to Outlook’s PST file. But, we have plans to support it in future. We will inform you when this feature will become available.

The above code consists of 2 parts basically.
One uses Aspose.Network to save MSG to disk (D drive).

Other uses Outlook Interop to add a new mail item in Outlook I think. For this, you may refer to MSDN, public forums or contact Microsoft support. I am sorry, we handle queries of Aspose components only in this forum.

The issues you have found earlier (filed as 21217) have been fixed in [this update ](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry275667.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.