Quantcast
Channel: Últimos conteúdos
Viewing all articles
Browse latest Browse all 14190

Configurando mail no php

$
0
0

Boa noite,sou iniciante em php e to com um problema que não consigo enviar as informações digitadas pelo usuario ao meu email, como faço para configurar mail em php ? segue o algoritmo abaixo

<html>
<body>


<?php


if(isset($_POST['enviar'])){
$nome=$_POST['seunome'];
$email=$_POST['email'];
$assunto=$_POST['assunto'];
$mensagem=$_POST['mensagem'];
$para="leonardosantosbispo@gmail.com";
  mail($para,$assunto,$mensagem,"From: $email\n");




}
?>
<br/>
<form action ="" method="post">
Nome:<br/><input type ="text" name="nome"/><br/>
Email:<br/><input type ="text" name="email"/><br/>
Assunto:<br/><input type ="text" name="assunto"/><br/>
Mensagem:<br/><textarea  name="mensagem" rows="5"></textarea><br/>
<input type ="submit" name="enviar" value="Enviar email"/>




</form>
</body>
</html>

Viewing all articles
Browse latest Browse all 14190

Trending Articles