php mail() issue
Posted: Fri May 23, 2008 3:32 pm
I am using the following code after a user submits a form. I want to send them a confirmation email, and myself an email with their info. However, the email is only sending to the user. This is very strange because in the code I send myself the email (line 5) before I send the user the email (line 6). Any reason why it wouldn't send both?
Code: Select all
ini_set("sendmail_from","webmaster@BadAssDraftBoards.com");
ini_set("SMTP","smtp.secureserver.net");
$MyAddress="webmaster@BadAssDraftBoards.com";
$Mail=mail("$MyAddress","Bad Ass Draft Board Order","$Body","From: $MyAddress");
$Mail2=mail($_POST["eMail"],"Bad Ass Draft Board Order Confirmation","$Body","From: $MyAddress");