Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 767 Bytes

api_mail.md

File metadata and controls

33 lines (28 loc) · 767 Bytes

Mail XML

mails.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mails>
<mails>
    <mail id="mail1">
        <to>:to</to>
        <cc></cc>
        <bcc></bcc>
        <mdn></mdn>
        <subject>About :about </subject>
        <body>
Mr. :userName
...
        </body>
    </mail>
    <mail id="mail2">
    ...
    </mail>
</mails>

Mail ID

Every <mail> tag should have an id. The id must be unique within the Mail XML file. It will be called by mail.send.

Param

You can define params in TO, CC, BCC, MDN, SUBJECT, and BODY just by writing :param. The mdn tag means "Disposition-Notification-To".

Encode

Pay attention to the mark "<". You must write it like "&lt;" to conform to XML syntax.