"; foreach ($post_info as $key => $val) { if ($val != "hidden") { if ($key != "source") { if ($key != "PHPSESSID") { $content2 .= "

$key:
" . utf8_decode($val) . "

"; } } } } $content2 .= ""; if ($_POST['email'] == "") { $_POST['email'] = "geral@freixipool.pt"; } $subject = 'CONTACTO DO WEBSITE'; $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n"; $headers .= 'From: ' . $_POST['email'] . "\n"; echo mail($recipient, $subject, $content2, $headers); ?>