Sends an email.
<mail smtp-host="smtp server"
smtp-port="smtp server port"
type="content type"
from="sender"
reply-to="reply-to header"
to="to"
cc="cc"
bcc="bcc"
subject="subject"
charset="charset"
username="smtp username"
password="smtp password"
security="smtp security type">
mail content with optional attachments (mail-attach elements)
</mail>
| Name | Required | Default | Description |
|---|---|---|---|
| smtp-host | yes | SMTP server host. | |
| smtp-port | no | 25 | SMTP server port. |
| type | no | text |
Content type of the mail body: text or html.
|
| from | yes | The senders email address. | |
| reply-to | no | The email address where replies should be sent to. | |
| to | yes | Comma-separated list of recipient email addresses. | |
| cc | no | Comma-separated list of cc email addresses. | |
| subject | no | Subject of the email. | |
| charset | no | default configuration's charset | Charset of the email. |
| username | no | SMTP server username. | |
| password | no | SMTP server password. | |
| security | no | none |
SMTP server security type: none, ssl or tsl
|
<mail from="reminder@my.com" smtp-host="smtp.gmail.com" to="myaccount@gmail.com"
username="myusername" password="mypassword" security="tsl"
subject='Reminder for ${sys.datetime("dd.MM.yyyy.")}'>
Here is what you need today:
<file path="today.txt">
</mail>