Contacts Contactos
";
$subject = "# ".stripslashes($_POST['subject']);
$message = strip_tags(stripslashes($_POST['message']));
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$headers .= "From: ".$from."\r\n";
if (isSet($_SERVER['HTTP_VIA'])) {
$headers .= "X-HTTP-VIA: ".$_SERVER['HTTP_VIA']."\r\n";
}
if (isSet($_SERVER['HTTP_USER_AGENT_VIA'])) {
$headers .= "X-HTTP-USER-AGENT-VIA: ".$_SERVER['HTTP_USER_AGENT_VIA']."\r\n";
}
if (isSet($_SERVER['HTTP_COMING_FROM'])) {
$headers .= "X-HTTP-COMING-FROM: ".$_SERVER['HTTP_COMING_FROM']."\r\n";
}
if (isSet($_SERVER['HTTP_X_COMING_FROM'])) {
$headers .= "X-HTTP-X-COMING-FROM: ".$_SERVER['HTTP_X_COMING_FROM']."\r\n";
}
if (isSet($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$headers .= "X-HTTP-X-FORWARDED-FOR: ".$_SERVER['HTTP_X_FORWARDED_FOR']."\r\n";
}
if (isSet($_SERVER['HTTP_X_FORWARDED'])) {
$headers .= "X-HTTP-X-FORWARDED: ".$_SERVER['HTTP_X_FORWARDED']."\r\n";
}
if (isSet($_SERVER['HTTP_FORWARDED'])) {
$headers .= "X-HTTP-FORWARDED: ".$_SERVER['HTTP_FORWARDED']."\r\n";
}
if (isSet($_SERVER['HTTP_CLIENT_IP'])) {
$headers .= "X-HTTP-CLIENT-IP: ".$_SERVER['HTTP_CLIENT_IP']."\r\n";
}
if (isSet($_SERVER['HTTP_FROM'])) {
$headers .= "X-HTTP-FROM: ".$_SERVER['HTTP_FROM']."\r\n";
}
if (isSet($_SERVER['HTTP_PROXY_CONNECTION'])) {
$headers .= "X-HTTP-PROXY-CONNECTION: ".$_SERVER['HTTP_PROXY_CONNECTION']."\r\n";
}
if (isSet($_SERVER['HTTP_X_PROXY_CONNECTION'])) {
$headers .= "X-HTTP-X-PROXY-CONNECTION: ".$_SERVER['HTTP_X_PROXY_CONNECTION']."\r\n";
}
if (isSet($_SERVER['HTTP_PROXY_AUTHORIZATION'])) {
$headers .= "X-HTTP-PROXY-AUTHORIZATION: ".$_SERVER['HTTP_PROXY_AUTHORIZATION']."\r\n";
}
if (isSet($_SERVER['REMOTE_ADDR'])) {
$headers .= "X-REMOTE-ADDR: ".$_SERVER['REMOTE_ADDR']."\r\n";
}
if (isSet($_SERVER['HTTP_USER_AGENT'])) {
$headers .= "X-HTTP-USER-AGENT: ".$_SERVER['HTTP_USER_AGENT']."\r\n";
}
$headers .= "X-Mailer: CFTC Web Mail\r\n\r\n";
mail($to, $subject, $message, $headers);
echo '
A sua mensagem foi enviada com sucesso. Será contactado em breve.
';
}
?>
Centro de Física Teórica e Computacional
Faculdade de Ciências
Campo Grande, Edifício C8
P-1749-016 Lisboa
Tel.: + 351 21 750 0055
Fax: + 351 21 750 0977