Formulário de envio de e-mail não funciona
Código html.
<form id="form1" name="form1" method="post" action="enviasegundavia.php">
<label>Nome completo
<input name="nomeb" type="text" class="form" id="nomeb" size="30" />
</label>
<br />
<label>Instituição
<input name="instituicaob" type="text" class="form" size="30" />
</label>
<br />
<label>Curso <br />
<input name="cursob" type="text" class="form" size="40" />
</label>
<br />
<label>Telefone
<input name="telefoneb" type="text" class="form" size="40" />
</label>
<br />
<br />
<label>
<input name="Submit" type="submit" class="botao" value="Enviar" />
</label>
</form>
enviasegundavia.php
<?php
$nomeo=$_POST["nomeo"];
$telefoneo=$_POST["telefoneo"];
$emailo=$_POST["emailo"];
$instituicaoo=$_POST["instituicaoo"];
$cursoo=$_POST["cursoo"];
$epara = "dbleal@hotmail.com";
$assuntoemail = "$nomeo";
$msg = "Nome: $nomeo\n\n Telefone: $telefoneb\n\n Email: $emailo \n\n Intituição: $instituicaob\n\n Curso: $cursob \n\n ";
$titulodoemail = "De: $nome";
mail($epara,$assuntoemail,$msg);
echo "Formulário enviado com sucesso";
?>
<script> javascript:history.go(-1);</script>
e ai o que estou fazendo de errado ?
Discussão (2)
Carregando comentários...