function generatePassMail($sub, $address, $reset_password, $body) { if (strstr($sub, "Scientist")) { $body = $body . "<br/><br/><a href=\"https://www.lactor.org/admin\">Log in here</a>.<br />"; } else { $body = $body . "<br/><br/><a href=\"https://www.lactor.org/\">Log in here</a>.<br />"; } $message = parsePassHTML($body, $reset_password); $to = $address; $headers = "Content-type: text/html; charset=iso-8859-1" . "\n"; $headers .= "From: LACTOR " . "\n"; mail($to, $sub, $message, $headers); }
function generatePassMail($to, $sub, $reset_password, $body) { $message = parsePassHTML($body, $reset_password); $headers = "Content-type: text/html; charset=iso-8859-1" . "\n"; mailx($to, $sub, $message, $headers); }