I have a custom extension which I have working great- sends out email using the CRM_Utils_mail function. The emails go out fine, look fine, but are not registered to the contact's profile (not under the Mailings tab, or any of the others).
$emailbody = (CRM_Core_Smarty::singleton()->fetch($turl)); $params = array(); $params['from'] = 'Sporting Detection Dogs Association <firstname.lastname@example.org>'; $params['toName'] = $values['Requester_Name'].' '.$values['Requester_lastname']; $params['toEmail'] = $contact['email']; $params['subject'] = 'Trial Approval'; $params['text'] = ''; $params['html'] = $emailbody; CRM_Utils_Mail::send($params);
Is there a parameter I can add to make it add to the history for the record? Also, as a sidenote, how do I add more than one toEmail address?
thanks in advance.