send_html_mail()
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', '<p>Hi <b>User</b>,</p><p>welcome to Structr!</p>', 'Hi User,\n\nwelcome to Structr!')}