Ver Mensaje Individual
  #13 (permalink)  
Antiguo 11/05/2015, 01:16
Avatar de lauser
lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Como envio un mail con copia a otro correo

Cita:
Iniciado por cornejo6 Ver Mensaje
este es el scrip y quiero que llegue con copia a otro mail

<?php

// Se muestra esta pag despues de enviado el correo
$goto_after_mail = "index.html";

// use both value's from your form
$from_mail = $_REQUEST['jMAIL'];
$from_name = $_REQUEST['aNOMBRE'];

$header = "From: \"$from_name\" <$from_mail>\r\n";
$header = "Cc: \"$from_name\" <$from_mail>\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/plain; charset=\"utf-8\"\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n";

//your mailsubject incl. current date
$subject = "Formulario Web - Artistika";

$body .= "Asunto : " . $_REQUEST['sASUNTO'] . "\r\n";
$body .= "Nombres y Apellidos : " . $_REQUEST['aNOMBRE'] . "\r\n";
$body .= "Mail de contacto : " . $_REQUEST['jMAIL'] . "\r\n";
$body .= "Tus Comentarios : " . $_REQUEST['pTEXTO'] . "\r\n";

if (mail("[email protected]", $subject, $body, $header)) {
header("Location: ".$goto_after_mail);
}
?>
Abre otro hilo, no tiene nada que ver con la pregunta principal.
Es tan simple como añadir otro mail.
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-