<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcExtensionMail.SendMail</id>
	<title>PdcExtensionMail.SendMail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcExtensionMail.SendMail"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcExtensionMail.SendMail&amp;action=history"/>
	<updated>2026-05-06T15:39:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcExtensionMail.SendMail&amp;diff=34876&amp;oldid=prev</id>
		<title>TC: Created page with &quot;== Declaration == SendMail as Boolean  == Description == Returns true or false whether the email could be generated and sent.  == Notes == This method generates an email, and...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcExtensionMail.SendMail&amp;diff=34876&amp;oldid=prev"/>
		<updated>2023-03-23T13:18:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == SendMail as Boolean  == Description == Returns true or false whether the email could be generated and sent.  == Notes == This method generates an email, and...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
SendMail as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns true or false whether the email could be generated and sent.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
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 &amp;#039;Send&amp;#039; in order to send it.&lt;br /&gt;
&lt;br /&gt;
If the email could not be generated or sent, this method will return false.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
Dim aEmail As PDCEXT.IExtensionMail = PDC.App.ExtensionMail&lt;br /&gt;
aEmail.ForceMSGraph = True&lt;br /&gt;
aEmail.AddSignature = True&lt;br /&gt;
&lt;br /&gt;
Dim recipients As IStrings = PDC.App.GetEmptyStringsList&lt;br /&gt;
recipients.Add(&amp;quot;test@outlook.com&amp;quot;)&lt;br /&gt;
aEmail.Recipients = recipients&lt;br /&gt;
&lt;br /&gt;
Dim attachments As IStrings = PDC.App.GetEmptyStringsList&lt;br /&gt;
attachments.Add(&amp;quot;‪C:\test.txt&amp;quot;)&lt;br /&gt;
aEmail.Attachments = attachments&lt;br /&gt;
&lt;br /&gt;
aEmail.Subject = &amp;quot;Placeholder&amp;quot;&lt;br /&gt;
&lt;br /&gt;
aEmail.SendMail()&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since April 2023(From version 2023.2.1.0)&lt;/div&gt;</summary>
		<author><name>TC</name></author>
	</entry>
</feed>