$to_admin_groups
$to_admin_groups : array<mixed,string>
A list of admin group names or ids that this message should be sent to.
Defines an immutable object representing a templatable email, what is attached to it, and who it is going to be sent to in the context of CMSMS.
clear_addresses() : \CGExtensions\Email\Email
Clear all known addresses.
with_subject_template(string $tpl) : \CGExtensions\Email\Email
Adjust the subject template
| string | $tpl | The smarty template used to generate the email subject. |
with_body_template(string $tpl) : \CGExtensions\Email\Email
Adjust the body template
| string | $tpl | The smarty template used to generate the email body. Cannot be empty. |
add_data(string $key, mixed $val) : \CGExtensions\Email\Email
Add a key and value to the data
| string | $key | |
| mixed | $val |
add_attachment(string $filename) : \CGExtensions\Email\Email
Add an attachment
| string | $filename | A complete path name |
add_admin_group( $gid) : \CGExtensions\Email\Email
Add an admin group to the list of groups to send to.
| $gid |
add_feu_uid(integer $uid) : \CGExtensions\Email\Email
Add an FEU uid to the list of individual FEU users to send to.
Note, must be a valid uid. The system will not check if this is a disabled or expired user.
| integer | $uid | A valid FEU user id |
add_feu_group(string|integer $gid) : \CGExtensions\Email\Email
Add an FEU group to the list of groups to send to.
| string|integer | $gid | An FEU group id or name. |
with_priority(integer $val) : \CGExtensions\Email\Email
Adjust the priority of the message
| integer | $val | A number between 1 and 5 |
with_encode_subject(boolean $flag) : \CGExtensions\Email\Email
Adjust the encode subject flag.
| boolean | $flag |
with_current_admin(boolean $flag) : \CGExtensions\Email\Email
Adjust the current_admin flag to indicate whether or not this email should be sent to the currently logged in admin
| boolean | $flag |
with_current_feu(boolean $flag) : \CGExtensions\Email\Email
Adjust the flag indicating whether or not this email should be sent to the currently logged in FEU user for FEU requests
| boolean | $flag |
add_address(string $addr, string $name = null) : \CGExtensions\Email\Email
Add an additional email address to send this message to.
| string | $addr | |
| string | $name | An optional text name |
add_cc(string $addr, string $name = null) : \CGExtensions\Email\Email
Add an email address to the CC list
| string | $addr | |
| string | $name | An optional text name |
add_bcc(string $addr, string $name = null) : \CGExtensions\Email\Email
Add an email address to the BCC list
| string | $addr | |
| string | $name | An optional text name |