Documentation
SERVERMAIL
usage
<CREATE>
<SERVERMAIL>
<SENDER [email="...@..."]>...</SENDER>
<RECIPIENT>...@...</RECIPIENT>+
[<FORWARD>...@...</FORWARD>*]
[<BCC>...@...</BCC>*]
<SUBJECT>...</SUBJECT>
<BODY>...</BODY>
[<ATTACHMENT>nectil file</ATTACHMENT>]
</SERVERMAIL>
</CREATE>
paramètres
SENDER: the sender of the message (From: ...)
RECIPIENT: a recipient of the e-mail. If you want to put more recipients, add other RECIPIENT nodes.
FORWARD: a recipient of the e-mail but as Cc. You can use multiple FORWARD nodes to have multiple recipients of this type.
BCC: a recipient of the e-mail but as Bcc (hidden recipient). You can use multiple BCC nodes to have multiple recipients of this type.
SUBJECT: subject of the message
BODY: text of the message. Also accepts HTML in latest versions (2010-10).
ATTACHMENT: a file you want to join to the message. Must be a file path in its Nectil format (Ex: /media/picture.jpg). If you want to join multiple files, use multiple ATTACHMENT nodes.
retourne
Returns whether the message was sent or not.
exemples
<CREATE>
<SERVERMAIL>
<SENDER email="website@domain.com">Website, contact form</SENDER>
<RECIPIENT>robert@domain.com</RECIPIENT>
<SUBJECT>Information request</SUBJECT>
<BODY>Do you make home delivery ?</BODY>
<ATTACHMENT>/media/instructions.doc</ATTACHMENT>
</SERVERMAIL>
</CREATE>
<CREATE>
<SERVERMAIL>
<RECIPIENT>monitoring@nectil.com</RECIPIENT>
<SUBJECT>Information request</SUBJECT>
<BODY><html><body><h1>Do you make home delivery ?</h1>
<p>It might be !</p><hr/><img src="http://www.nectil.com/Public/images/nectil_logo.png"/></body></html></BODY>
</SERVERMAIL>
</CREATE>