‘;
}

if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = “Form details below.\n\n”;

function clean_string($string) {
$bad = array(“content-type”,”bcc:”,”to:”,”cc:”,”href”);
return str_replace($bad,””,$string);
}

$email_message .= “Sender: “.clean_string($first_name).”\n”;
$email_message .= “Sender email: “.clean_string($email_from).”\n”;
$email_message .= “Title: “.clean_string($pub_title).”\n”;
$email_message .= “Authors: “.clean_string($pub_authors).”\n”;
$email_message .= “Date published: “.clean_string($pub_date_published).”\n”;
$email_message .= “Journal name: “.clean_string($pub_journal_name).”\n”;
$email_message .= “Journal url: “.clean_string($pub_journal_url).”\n”;
$email_message .= “Publication url: “.clean_string($pub_url).”\n”;
$email_message .= “Abstract: “.clean_string($abstract).”\n”;
$email_subject .= ” – “.clean_string($first_name);

// create email headers
$headers = ‘From: ‘.$email_from.”\r\n”.
‘Reply-To: ‘.$email_from.”\r\n” .
‘X-Mailer: PHP/’ . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>

Well done. Your paper has been submitted and will be uploaded shortly.


Be patient. Go do your research.



jZ