| Function Summary | |
|---|---|
| string | zm_email_formats(string template) Check in which format a given email template exists. |
| string | zm_get_email_contents(string template, boolean asHTML, array context) Create email contents based on the given parameter. |
| void | zm_mail(string subject, string template, array context, string toEmail, string toName, string fromEmail, string fromName, string attachment) Send email. |
public string zm_email_formats(string template)
Check in which format a given email template exists.
html, text, both or none.public string zm_get_email_contents(string template, boolean asHTML, array context)
Create email contents based on the given parameter.
public void zm_mail(string subject, string template, array context, string toEmail, string toName, string fromEmail, string fromName, string attachment)
Send email.
Contents generation is delegated to a ZMEmailView.
The environment will be se same as for the actual HTML response view. This is done by attaching the current controller to the view.
$toEmail.storeEmailFrom.$fromEmail.