-
Notifications
You must be signed in to change notification settings - Fork 12
Parcel Type: System Email
objectivehtml edited this page Dec 16, 2014
·
2 revisions
The System Email parcel type allows you to override the emails system by Craft. You can override the templates, or just changes the service that is sending the emails. For example, you could send all your system emails with Mandrill's HTTP API instead of using SMTP. A lot of the settings from the default email parcel apply here, but there are some unique variables.
user
This is the UserModel that triggered the email to be sent.
emailModel
This is the EmailModel that contains the email contents, send, and recipient data (among other things).
variables
Any additional variables made available to the email templates.
{{ user.firstName }} {{ user.lastName }}
{{ user.email }}
{{ emailModel.toFirstName }} {{ emailModel.toLastName }}
{{ emailModel.fromEmail }}
{{ emailModel.toEmail }}
{{ emailModel.body }}
{{ emailModel.htmlBody }}
Note, these are just a few of the variables available. Refer to the Craft documentation for more information on these models.