Usage

send_html_mail(fromAddress, fromName, toAddress, toName, subject, htmlContent[, textContent[, attachments]]

Description

Sends an HTML e-mail with the given configuration. See Mail Configuration for more information. The e-mail methods are the main use-case for the template() method.

2.0.2 An optional list of files (instances of FileBase) can be passed to the command. The files will be sent as e-mail attachments.

Note

Attachments have to be provided as a list - even if only one file should be attached.

Example

${send_html_mail('info@structr.com', 'Structr', 'user@domain.com', 'Test User', 'Welcome to Structr', 'Hi User, welcome to Structr!')}

Graph-Browser

About this article
Last change 2017-09-18
Topics FrontendFunctionsStructr 2.0