SendMail as Boolean
Returns true or false whether the email could be generated and sent.
This method generates an email, and tries to send it. This function is definately supported for MSGraph. When using SMTP, if a user is executing the script from PdcWin, it will first open the Bemet email form, and the user still has to press 'Send' in order to send it.
If the email could not be generated or sent, this method will return false.
This code example shows an email that is generated, and filled with a recipient, attachment, subject, and signature. This email is then sent via MSGraph. The user can find it in outlook in the drafts folder.
Dim aEmail As PDCEXT.IExtensionMail = PDC.App.ExtensionMail aEmail.ForceMSGraph = True aEmail.AddSignature = True Dim recipients As IStrings = PDC.App.GetEmptyStringsList recipients.Add("firstname.lastname@example.org") aEmail.Recipients = recipients Dim attachments As IStrings = PDC.App.GetEmptyStringsList attachments.Add("C:\test.txt") aEmail.Attachments = attachments aEmail.Subject = "Placeholder" aEmail.SendMail()
Available since April 2023(From version 2023.2.1.0)