basterebbe un po' di debug ....
// SEND TO FLIGHT4ALL
$sendTo = "sales@flight4all.com";
$subject = "Flight4all TRIAL version REQUEST SERIAL";
$headers = "From: " . $_POST["address"] ." <" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = "xxxx" . $_POST["comments"] . " requires the TRIAL version code of FLIGHT4ALL \r\n Flight4all automatic email";
if(mail($sendTo, $subject, $message, $headers)) {
// SEND TO CUSTOMER
$sendTo2 = $_POST["email"];
$subject2 = "Flight4all TRIAL version";
$headers2 = "From: Flight4all.com <sales@fligh4all.com> \r\n";
$headers2 .= "Reply-To: <sales@fligh4all.com> \r\n";
$headers2 .= "Return-path: <sales@fligh4all.com>";
$message2 = "Dear " . $_POST["address"] ." \r\n thanks for chosing Flight4all airlines scanning software. \r\n In few hours you will receive the serial number for the trial version";
if(!mail($sendTo2, $subject2, $message2, $headers2))
die('probabilmente hai una restrizione, prova a mettere uno sleep prima di questo invio oppure gestiscilo in modo asincrono');
}
else {
die('la prima email ha qualcosa che non va');
}


Rispondi quotando