Hi,
Here is the same approach that @andrzej.kniola but extracted as a reusable component and expecting attachment object as input.
Arguments:
-
StrDestinationDirectory : The directory where the attachement will be save (ex: “C:\Temp”)
-
MailAttachment: The System.Net.Mail.Attachment that you will get from AttachmentCollection of a Mail object.
-
StrFileName(Optional) : The name (with extension) under what the attachement will be saved. If ommited, will be named after the initial attachment file name.
.Outlook_SaveAttachment.xaml (8.1 KB)
Cheers