Adds an email attachment. Can be used only as part of mail processor of html type.

Syntax

<mail-attach name="name" mimetype="mimetype" inline="inline">
    body of the attachment
</mail-attach>

Attributes

Name Required Default Description
name no Attachment N Name of the attachment.
mimetype no image/jpeg for inline attachments,
application/octet-stream otherwise
Mime type of the attachment.
inline no no Tells whether attachment is embeded in the mail body.

Example

<mail from="my@my.com" smtp-host="smtp.gmail.com" to="myaccount@gmail.com" type="html"
      username="myusername" password="mypassword" security="tsl" subject='Photos from the ...'>
    Here is me with ...
    <![CDATA[ <img src="]]>
        <mail-attach inline="true"><file path="myphoto1.jpg" type="binary"/></mail-attach>
    <![CDATA[ "> ]]>
    And this is ...
    <![CDATA[ <img src="]]>
        <mail-attach inline="true"><file path="myphoto2.jpg" type="binary"/></mail-attach>
    <![CDATA[ "> ]]>
</mail>