0
I have a problem sending my website form via PHP. I even followed the example of my hosting, Locaweb, but the submission is not done. Can someone help me?
<?php
$quebra_linha = "\n";
$emailsender = "[email protected]";
$nomeremetente = "Fabrica da Limpeza";
$emaildestinatario = "[email protected]";
$assunto = "Contato via Site";
$mensagem = "blabla";
$mensagemHTML = 'teste'.$mensagem.'';
$headers = "MIME-Version: 1.1".$quebra_linha;
$headers .= "Content-type: text/html; charset=iso-8859-1".$quebra_linha;
$headers .= "From: ".$emailsender.$quebra_linha;
$headers .= "Return-Patch: ".$emailsender.$quebra_linha;
$headers .= "Reply-To: ".$emailsender.$quebra_linha;
mail ($emaildestinatario, $assunto, $mensagemHTML, $headers , "-r". $emailsender);
?>
Sending form or email is not done?
– rray
Sending Email is not done :S
– danilopnh
He contacted the lodging, something was commented?
– rray
They say nothing because the code is my responsibility ' But I believe there is nothing wrong with my code .
– danilopnh
Try it this way
if(!mail ($emaildestinatario, $assunto, $mensagemHTML, $headers)){ echo 'erro'; }
– rray