PdcExtensionMail.ShowMailInClient

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

ShowMailInClient as Boolean

Description

Returns true or false whether the email could be generated and shown.

Notes

This method generates an email, and tries to show it.

If the email could not be generated or shown, this method will return false.

Code example

This code example shows an email that is generated, and filled with a recipient, attachment, subject, and signature. This email is then shown in outlook, the local browser of the user via MSGraph.

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

Dim recipients As IStrings = PDC.App.GetEmptyStringsList
recipients.Add("test@outlook.com")
aEmail.Recipients = recipients

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

aEmail.Subject = "Placeholder"

aEmail.ShowMailInClient()

Availability

Available since April 2023(From version 2023.2.1.0)