Purpose
Send an email if properly configured
Location
users/helpers/helpers.php
Parameters
# |
Parameter |
Data Type |
Required |
Description |
1 |
$to |
|
Yes |
undocumented |
2 |
$subject |
|
Yes |
undocumented |
3 |
$body |
|
Yes |
undocumented |
4 |
$opts = [] |
|
Yes |
undocumented |
5 |
$attachment = null |
|
Yes |
undocumented |
Example
email(\"bob@aol.com\",\"Hi Bob\",\"This is an email\");
Further Documentation:
Note: Email settings must be properly configured and tested in the Email Settings section of the dashboard.
Options:
You can also pass
Which would be formatted as:
Attachments are also possible by doing