After the
The program creates a new e-mail as the following code:
< Code> solutionRoot = rootStoreFolder as Outlook. Folders.ed ("MyInboxFolder", Outlook.Oldefault Folders.olfolder Inbox); Folder; Folder = solutionRoot.Folders ["MyFolderName"] as Outlook.Folder; Subfolder = folder Folder ["MyFolderSubName"] as Outlook. Folder; Outlook.MailItem mailItem = this.Application.CreateItem (Outlook.OlItemType.olMailItem) as Outlook.MailItem; MailItem.Subject = "TestSubject"; MailItem.To = "myEmailAddress@yahoo.com"; MailItem.Body = "This is the message."; MailItem.Importance = Outlook.OlImportance.olImportanceLow; MailItem.Display (wrong); MailItem.Move (subfolder);
The result is the creation of a new message with a send button placed in the subfolder folder
The question is:. What code should I use in order to create a new mail item in the folder called subfolder, but not a new ready e-mail should be sent, an e-mail that has been found and already read an existing e -similarity.
Outlook will not send you messages sent outside the box (MailItem.Sent property is read only) . The only item created in the sent state is a post item - you can create an olPostItem object (PostItem), then IPM to your MessageClass property. Change back to the note. To ensure this you have been shown correctly that you must also remove the PR_ICON_INDEX property. Note that sent / received dates can not be set using OOM
If using an option, the following script (VB) will create a duplicate message receiving the address to the current user. Set session = CreateObject ("Redemption.RDOSession") Session.MAPIOBJECT = Application.Session.MAPIOBJECT Set Inbox = Session.GetDefaultFolder (olFolderInbox) Message = Inbox.Items.Add Msg.Sent = True set CU = session is set. Current User Set Adults = Messages Reciprints.ADX (CUn., NMTP, OLTO) MGS. "Sender", "smtp", "joe@domain.demo", false, true) set vSender = session.addressbook.gatadderentryfrumid (vSenderEntryId) message.Sedder = vSender message.stantonbihfff = vSender messageSenton = now received message = now message. Save
Comments
Post a Comment