email=="")) throw new NotificationException("Could not get the email address for GUID:$to_guid"); $to = $entity->email; $subject = $params['subject']; $from = $params['from']; $headers = "From: $from\r\n"; return mail($to, $subject, $message, $headers); } ?>