<?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=PdcReport.Sendmail</id>
	<title>PdcReport.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=PdcReport.Sendmail"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcReport.Sendmail&amp;action=history"/>
	<updated>2026-05-06T17:20:48Z</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=PdcReport.Sendmail&amp;diff=1293&amp;oldid=prev</id>
		<title>Mike: Created page with &quot;== Declaration == SendMail(Recipient as String,Subject as String,ShowInEmailClient as Boolean) as Boolean  == Description ==   == Notes == This method generates an E-mail with...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcReport.Sendmail&amp;diff=1293&amp;oldid=prev"/>
		<updated>2012-05-21T11:54:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == SendMail(Recipient as String,Subject as String,ShowInEmailClient as Boolean) as Boolean  == Description ==   == Notes == This method generates an E-mail with...&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(Recipient as String,Subject as String,ShowInEmailClient as Boolean) as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This method generates an E-mail with a pdf of the printpreview.&lt;br /&gt;
The filename of the pdf is the report name in PdC (with.pdf).&lt;br /&gt;
The subject of the mail stored in the report is only overwritten by the applied subject to the sendmail command.&lt;br /&gt;
If the applied subject is empty, the subject of PdC is used in the E-mail.&lt;br /&gt;
The mail body is stored in the report in PdC.&lt;br /&gt;
To send the E-mail immediately, the third parameter must be false. When it is true, the E-mail is displayed.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This example code opens a report with ID 336 and create a pdf in an E-mail.&lt;br /&gt;
After generating the E-mail, it is displayed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
dim objReport&lt;br /&gt;
dim strRecipient&lt;br /&gt;
dim strSubject&lt;br /&gt;
&lt;br /&gt;
  strRecipient = &amp;quot;self@bemet.nl;self.email@bemet.nl&amp;quot; &amp;#039;The adresses doesn&amp;#039;t work&lt;br /&gt;
  strSubject = &amp;quot;Report ID is 336: Mail with PDF&amp;quot;&lt;br /&gt;
  set objReport = pdc.Reports.Open(336)&lt;br /&gt;
  objReport.SendMail strRecipient, strSubject, True&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since Februar 2011 (from version 4.2).&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
</feed>