Saludos gentita tengo la siguiente consulta, en php como aria para enviar un mismo mensaje a dos correos diferentes, esperando su apoyo me despido. dejo el codigo.
<?php
$to = '
[email protected]';
$to = '
[email protected]';
$name = stripslashes($_POST['txtnombreapellidos']); //sender's name
$email = stripslashes($_POST['txtemail']); //sender's email
$website = stripslashes($_POST['txtdni']); //sender's website
$telefono = stripslashes($_POST['txttelefono']);
$subject = "Asunto - "; //The default subject. Will appear by default in all messages. Change this if you want.
$subject .= stripslashes($_POST['txtasunto']); // the subject
$msg = "From : $name \r\n";
$msg .= "e-Mail : $email \r\n";
$msg .= "Website : $website \r\n";
$msg .= "Website : $telefono \r\n";
$msg .= "Subject : $subject \r\n\n";
$msg .= "---Message--- \r\n".stripslashes($_POST['txtmensaje'])."\r\n\n";
#$hoy=date("M-d-Y");
?>
<?php
if ($_SERVER['REQUEST_METHOD'] != 'POST'){
$self = $_SERVER['PHP_SELF'];
?>
<table border=0 bordercolor=silver width=570 height=50>
<tr>
<td colspan=2> <table width="570" border="0" align="center" cellpadding="5" cellspacing="0" bordercolor="silver">
<tr>
<td valign="top" width="24"><img src="images/telefono.gif" align="middle" /></td><td><strong>Telefonos Fijos: </strong> 056-254000 / 056-252423</p></td>
<?php
} else {
error_reporting(0);
if (mail($to, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n"))
//Message sent!
//It the message that will be displayed when the user click the sumbit button
//You can modify the text if you want
echo nl2br("
<div class=\"MsgSent\">
<h1>Mensaje Enviado</h1>
</div>
");
else
// Display error message if the message failed to send
echo "
<div class=\"MsgError\">
<h1>Error!!</h1>
<p>Sorry <b><?=$name;?></b>, Error al enviar el Mensaje</p>
</div>";
}
?>