Ver Mensaje Individual
  #12 (permalink)  
Antiguo 10/05/2015, 19:29
cornejo6
 
Fecha de Ingreso: octubre-2008
Mensajes: 15
Antigüedad: 15 años, 6 meses
Puntos: 0
Como envio un mail con copia a otro correo

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);
}
?>