He gives no error, just does not get the message. Sending normally via a webmail goes normal, follow the form:
<form method="post" action="sendMail.php" id="formMail">
Assunto: <input name="assunto" type="text" class="txtMail" placeholder=" O assunto do seu email aqui"/><br />
Mensagem:<br />
<textarea name="comment" rows="12" cols="50" placeholder=" Sua mensagem aqui"></textarea><br />
<input type="submit" value="Enviar" /><br><br>
</form>
and the PHP code:
<?php
if(isset($_POST['assunto'], $_POST['mensagem'])){
$para = "[email protected]";
$assunto = $_POST['assunto'];
$msg = $_POST['message'];
mail($para, $assunto, $msg);
}
?>
Another question, is there any way to send the email message of who is sending me by the method mail();
?