## sendEmail

## Description

Send an email. The body can be either a string or the handle of a liquid page. A SMTP server is required. It's also possible to attach files to the email.

## Usage



## Options

NameTypeDescription
toStringrecipient's email
fromStringsender's email
subjectStringsubject of the email
bodyString[Optional] body of the email
page_handleString[Optional] handle of a liquid page
attachmentsHash[Optional] key is the file name, value is the absolute url to the file
smtpHashsettings for the SMTP server. Attributes: address, port, user_name, password, authentication ('plain'), enable_starttls_auto (boolean)

## Example



Do not store SMTP settings in the liquid tag

Instead use the site metafields to store them.