如何使用php发送经过身份验证的表单?
“我正在尝试解决此表单的问题,因为所有垃圾邮件都将出现。 有人知道我如何使用相同的表单进行身份验证吗 谢谢任何能帮忙的人如何使用php发送经过身份验证的表单?,php,forms,authentication,Php,Forms,Authentication,“我正在尝试解决此表单的问题,因为所有垃圾邮件都将出现。 有人知道我如何使用相同的表单进行身份验证吗 谢谢任何能帮忙的人 <?php $para = "martins.ago@gmail.com"; $assunto = "Orçamento"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $
<?php
$para = "martins.ago@gmail.com";
$assunto = "Orçamento";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:Log Materiais <martins.ago@gmail.com>\r\n";
$headers .= "Reply-To: ".$_POST['razaosocial_nome']." <".$_POST['email'].">\r\n";
mail("martins.ago@gmail.com",$assunto,$corpo,$headers);
mail($_POST['email'],$assunto,$corpo,$headers);
unset($_SESSION['Carrinho']['Produto']);
unset($_SESSION['Carrinho']);
?>
<script>
alert("Seu pedido de orçamento foi enviado, em 24 horas entraremos em contato, aguarde.");
window.location = '../home/index.php?orcamento=Sucesso';
</script>
警觉(“Seu pedido de orçamento foi enviado,em 24 horas entraremos em contato,aguarde.”);
window.location='../home/index.php?orcamento=Sucesso';
使用reCaptcha。有关reCaptcha PHP文档,请参阅。使用CAPTCHA
->reCaptcha
来防止垃圾邮件。为此你需要