Hola resulta que tengo un formulario hecho en flash y venia con este codigo en php.
Mi idea es que este correo sea para mas de un destinatario, actualmente esta destinada a una sola persona.
Agradeceria su ayuda
pd: intente a lo cavernicola y no funciono xD....poniendo el email al lado del otro con ;
<?php
// Coded by Bahadir 'Midgard' Kocaoglu ([email protected])
// http://www.eggdrop.gen.tr
// Your Email Address
$toaddress = "[email protected]";
// Subjects
if (empty($_POST['Subject'])) {
$subject = 'No Subject';
} elseif ($_POST['Subject'] == '1') {
$subject = '3D - 2B ';
} elseif ($_POST['Subject'] == '2') {
$subject = '3D - 1B';
} elseif ($_POST['Subject'] == '3') {
$subject = '2B - 1B ';
} elseif ($_POST['Subject'] == '4') {
$subject = '1D - 1B';
}
// Sender Information
$fromname = $_POST['Name'] . ' ' . $_POST['Surname'];
$fromaddress = $_POST['Email'];
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Please do not replace //
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Message
$message = nl2br($_POST['Message']);
// Content
$mailcontent = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
."<html dir=\"ltr\" lang=\"tr\">\n"
."<head>\n"
."<title>".$subject."</title>\n"
."<style type=\"text/css\" media=\"all\">\n"
."".$message."\n"
."</BODY>\n"
."</HTML>\n";
// E-mail Headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: Eggdrop Inc.\n";
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
// Send it.
@mail($toaddress, $subject, $mailcontent, $headers);
// Enjoy!
// MSN (for support): [email protected]
?>