PdcExtensionMail.Attachments

From External Bemet Wiki
Revision as of 12:56, 23 March 2023 by TC (talk | contribs) (Created page with "== Declaration == Attachments as IStrings == Description == Returns or changes the list of attachments to be added to the generated email. == Notes == This property should c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

Attachments as IStrings

Description

Returns or changes the list of attachments to be added to the generated email.

Notes

This property should contain a list of filepaths to the selected attachments.

Code example

This code example creates an empty email, adds 2 local files, and shows the resulting email in a client.

Dim aEmail As PDCEXT.IExtensionMail = PDC.App.ExtensionMail
aEmail.ForceMSGraph = True

Dim attachments As IStrings = PDC.App.GetEmptyStringsList
attachments.Add("‪C:\test.txt")
attachments.Add("‪C:\test2.txt")
aEmail.Attachments = attachments

aEmail.ShowMailInClient()

Availability

Available since April 2023(From version 2023.2.1.0)