Tested & works for me.
Documentation:
$object = nuSendEmail($to, $from, $fromname, $content, $subject, $filelist, $html = false, $cc = "", $bcc = "", $reply_to_addresses = array())
Parameters
$to : The email address you want the message to go to.
$from : The email address you want to appear in the email header. If this parameter is left empty, the email address from Setup -> Email Settings is used.
$fromname : The name you want to appear in the email header. If this parameter is left empty, the email address from Setup -> Email Settings is used.
$content : The content of the message, if the parameter $html is set true, then you can include html content
$subject : The email subject you want to appear in the email header
$filelist : If you do not want to send attachments, you must still supply an empty array here, if you do want to send attachments, this array needs in the following format $filename=>$filesource
$html : true or false
$cc : Carbon copy: When you CC people on an email, the CC list is visible to all other recipients.
$bcc: Blind Carbon Copy: Other recipients will not see the Bcc recipient's email address in the mail.
$reply_to_addresses: It is the email address that the reply message is sent when you want the reply to go to an email address that is different than the From: address.
Return Value
$object: If an error has occurred the function returns false, as well as the error message. Else the function will return true and a confirmation message of "Message sent successfully" will be returned.
Description
Sends an email using the settings stored in Setup -> Email Settings
Example
$r = nuSendEmail('
to_email@test.com','
from_email@test.com','From nuBuilder','Content here','Subject here', [], true, '
cc_email@test.com', '
bcc_email@test.com')
nuDebug()
[0] : Array
(
[0] => 1
[1] => Message sent successfully
[2] =>
[3] =>
)