Mail.FilePath = string.Concat(localTempDirectory, " Mail. MailAttachment mail = new MailAttachment() Save the mail itself in the temp directory MailAttachment.FilePath = string.Concat(localTempDirectory, attachment.FileName) Īttachment.SaveAsFile(mailAttachment.FilePath) MailAttachment.DisplayName = attachment.DisplayName MailAttachment mailAttachment = new MailAttachment() Save all the attachments in the temp directoryįoreach (Attachment attachment in attachments) String localTempDirectory = \TempYouTrackAttachments\",ĭirectory.CreateDirectory(localTempDirectory) MailItem myMailItem = (MailItem) inspector.CurrentItem Inspector inspector = application.ActiveInspector()
0 Comments
Leave a Reply. |