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);