email (function)

Purpose:

Send an email if properly configured

Example:

email("bob@aol.com","Hi Bob","This is an email");

Data Type(s):

email("email_address","subject_line","

Location:

users/helpers/helpers.php

Details:

Note: Email settings must be properly configured and tested in the Email Settings section of the dashboard.
Options:
You can also pass

$opts = array(
'email' => 'from_email@aol.com',
'name'  => 'Bob Smith'
;
Which would be formatted as:
mail("bob@aol.com","Hi Bob","This is an email",$opts);
Attachments are also possible by doing
$attachment = "welcome.pdf";
email("bob@aol.com","Hi Bob","This is an email",$opts,$attachment);