function sendReport($from, $subject, $message) { $from = cleanerString($from); $to = '*****@*****.**'; $from = $from; $headers = "From: {$from}\r\n"; $headers .= "Return-Path: {$from}\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=\"utf-8\"\r\n"; if (empty($message)) { $message = 'There is no message'; } $subject = cleanerString($subject); if (empty($subject)) { $subject = 'There is no subject'; } return mail($to, $subject, $message, $headers); }
function sendReport($subject, $message) { $to = '*****@*****.**'; $from = '*****@*****.**'; $headers = "From: {$from}\r\n"; $headers .= "Return-Path: {$from}\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=\"utf-8\"\r\n"; if (empty($message)) { $message = 'There is no message'; } $subject = cleanerString($subject); if (empty($subject)) { $subject = 'There is no subject'; } return mail($to, $subject, $message, $headers); }