Creates and returns an email-object.

Use this to send emails from within your termplate-rendering!


Syntax

email(?array $data = null): hublify_var_ext_email


Parameter

@param array $data Optional data to specify the email. All of this data can be set also via the email-object's own functions.

[to] - string (optional, default NULL)

[cc] - string  (optional, default NULL)

[bcc] - string  (optional, default NULL)

[subject] - string  (optional, default NULL)

[bodyHtml] - string  (optional, default NULL)

[bodyText] - string  (optional, default NULL)

[channel] - string  (optional, default NULL) The email-Channel-label through which this email shall be sent.



Return

Returns the living email instance.


Examples

Simple ...

...