Upon firing, send email to the specified recipient.
This actor uses the SMTP protocol and will prompt for a password
upon being first invoked. The password is sent encrypted.
<p>
By default, this actor will not actually send email, but
will rather produce the formatted email on its output port.
The reason for this is that sending email should be done
with some hesitation, since it is easy with such an actor
to create a flood of email that will have undesirable effects.
To get the actor to actually send email, change the value
of the <i>reallySendMail</i> parameter to true. Upon completion
of an execution, <i>reallySendMail</i> will be set back to false
(in the wrapup() method) to help prevent accidental duplicate
mailings.</p>
<p>
This actor requires the JavaMail 1.5 javax.mail.jar file be in the
classpath.</p>
<p>To use this actor, download <code>javax.mail.jar</code>
<a href="https://java.net/projects/javamail/pages/Home"><code>https://java.net/projects/javamail/pages/Home</code></a> and place it in
<code>$PTII/vendors/misc/javamail</code>. Below are the steps:</p>
<pre>
cd $PTII/vendors/misc/javamail
wget --no-check-certificate http://java.net/projects/javamail/downloads/download/javax.mail.jar
cd $PTII
./configure
</pre>
<p>In Eclipse, you will then need to refresh the project.</p> *
Edward A. Lee
$Id: SendMail.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 10.0
Yellow (eal)
Red (cxh)
Output to which the formatted message is sent.
The type of this output is string.
File to attach, if any. By default, this is empty,
which means to not attach any file.
Email address to copy on the message.
Email address from which this is sent.
The message to send. This defaults to an empty string.
Password port of the account.
The address to which replies should be directed.
This is a comma-separated list that defaults to
an empty string, which indicates that the reply
should go to the address specified by <i>from</i>.
If true, then actually send the email.
This is a boolean that defaults to false,
meaning that the message is only sent to the output port.
This parameter will be set back to false in the
wrapup() method, to help prevent duplicate mailings.
Host name for the send mail server.
Outgoing SMTP mail port.
User name for the send mail server.
Enable the Secure Sockets Layer (SSL) protocol.
The subject line. This defaults to an empty string.
Email address(es) to which this is sent.
This is a comma-separated list that defaults to
"nobody1@nowhere.com, nobody2@nowhere.com".