I have a simple message that I send using php mail().
The code used:
//recipient info
$to = "$bookernavn <$mail>";
$from = "Visens Venner Hiller?d <booking@eksample.dk>";
$subject = "Kvittering - $a_titel - ". date("j/n - Y",$a_dato);
$headers = "MIME-Version: 1.0" . "
";
$headers .= "Content-type: text/html; charset=utf-8" . "
";
$headers .= "From: $from" . "
";
$headers .= "Reply-To: $from" . "
";
$headers .= "Return-Path: $from" . "
";
$headers .= "Bcc: $from" . "
";
// now lets send the email.
mail($to, $subject, $mailmsg, $headers); }
For some strange reason two mails are sent each time...
Sometimes with several minutes in between...
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…