19 require_once(BASE.
"wcmf/lib/util/class.Message.php");
37 function send($fromName, $fromEmail, $toEmail, $subject, $body)
40 $email_header = str_replace(array(
':',
';',
','),
' ', $fromName);
43 $headers .=
"From: ".$email_header.
"<".$fromEmail.
">\n";
44 $headers .=
"X-Sender: <".$email_header.
">\n";
45 $headers .=
"X-Mailer: PHP\n";
46 $headers .=
"X-Priority: 3\n";
47 $headers .=
"Reply-To: ".$email_header.
"<".$fromEmail.
">\n";
48 $headers .=
"Content-type: text/plain; charset=iso-8859-1\n";
50 return mail($toEmail, $subject, $body, $headers);
send($fromName, $fromEmail, $toEmail, $subject, $body)