Foros del Web » Programando para Internet » PHP »

PHPMailer generico y con cualquier mail

Estas en el tema de PHPMailer generico y con cualquier mail en el foro de PHP en Foros del Web. Quiero enviar correos y este codigo no los manda. Código PHP: <?php  if(isset( $_REQUEST [ 'submit' ])){ $name       =  $_REQUEST [ 'name' ]; $body       =  ...
  #1 (permalink)  
Antiguo 11/11/2013, 17:48
Avatar de Simon_Echecopar  
Fecha de Ingreso: marzo-2012
Mensajes: 96
Antigüedad: 12 años, 1 mes
Puntos: 0
PHPMailer generico y con cualquier mail

Quiero enviar correos y este codigo no los manda.
Código PHP:
<?php 
if(isset($_REQUEST['submit'])){
$name      $_REQUEST['name'];
$body      $_REQUEST['body'];
$email     $_REQUEST['email'];
$subject   $_REQUEST['subject'];

$header 'From: ' $email " \r\n";
$header .= "X-Mailer: PHP/" phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$mensaje "Este mensaje fue enviado por " $name "\r\n";
$mensaje .= "Su e-mail es: " $email " \r\n";
$mensaje .= "Mensaje: " $body " \r\n";
$mensaje .= "Enviado el " date("d/m/y \a \l\a\s H:i:s ");

mail("[email protected]",$subject,utf8_decode($mensaje),$header);

echo 
"Su mensaje a sido enviado correctamente" ;
}
?>
<html>
 <head>    
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta charset="UTF-8">
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="css/styles.css" /> 
    <title> Inicio Ecuaro </title>
 </head>
 <body >
  <header>
   <h1 align="center"><img src="imagenes/Ecuaro.jpg" width="20%" height="30%"></h1>
   <nav>
    <ul id="menu">
     <font size="2" face="dotum">
      <li style="border-right: 2px solid grey"><a href="index.php">INICIO</a></li>
      <li style="border-right: 2px solid grey"><a href="Nosotros.html">NOSOTROS</a></li>
      <li style="border-right: 2px solid grey"><a href="Calendario.php">CALENDARIO</a></li>
      <li style="border-right: 2px solid grey"><a href="Servicios.html">SERVICIOS</a></li>
      <li style="border-right: 2px solid grey"><a href="Contacto.php">CONTACTO</a></li>
     </font>
    </ul>
   </nav>
  </header>

  <section id="espacio"> <br /> </section>
  <section id="contenido">
<div id="Contacto">CONTACTO<br />
        <table ><tr><td align="center">
           <font class="parrafo" face="dotum">Patricio&nbsp;Gutierrez&nbsp;&nbsp;</font>
          </td>
          <td align="left">
           <font class="parrafo" face="dotum" >&nbsp;Tilostoc<br/>&nbsp;Valle&nbsp;de&nbsp;Bravo,<br/>&nbsp;Estado&nbsp;de&nbsp;Mexico&nbsp;<br/>&nbsp;Mexico&nbsp;&nbsp;&nbsp;&nbsp;
           <br/>&nbsp;[email protected]<br/>&nbsp;Tel:&nbsp;044&nbsp;726&nbsp;262&nbsp;3698</font></td><td width="100%" align="center"><table><td>
           <form method="post" >
            <table border="2" bgcolor="#AAAAAA">
             <tr>
              <td><input type="text" value="Name..." id="name" class="input"></td>
              <td rowspan="3"><textarea class="textarea" id="body" width="100%" height="100%"></textarea></td>
             </tr>
             <tr><td ><input class="input" type="text" value="Subject..." id="subject"><br/></td></tr>
             <tr><td ><input class="input" type="text" value="Email..." id="email"><br/></td></tr>
             <tr><td align="right" colspan="3"><input type="submit" value="Enviar" id="submit"></td></tr>
            </form></p></td></tr></table>
           <p><img width="15%" src="imagenes/FB.png">
           <img width="15%" src="imagenes/twitter.jpg">
           <img width="15%" src="imagenes/g+_logo.jpg" ></p></td></tr></table>
        </div>
     </section>
 </body>
</html>
Vi los aportes y me apoye en ellos para el envio de correo, lei el siguiente hilo
http://www.forosdelweb.com/f142/php-...nciona-880939/ y no entendi mucho. Como configuro el Mailer?

Etiquetas: generico, html, mail, phpmailer
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:05.