hi!
Well, I suppose there are several ways to do it... But if you put code into tha
action, you might not recive mail if the byers adress is not validatet, so I simply
added some code, basicly copy and past, hope this makes seense to you
Bjarne
file://send confirmation email ### START E_MAIL
if((SEND_EMAIL) AND validateEmail($billingAddress["Email"]))
{
$mail_body = L_SUBMITORDER_DEAR .
$billingAddress["Name_First"] . " " .
$billingAddress["Name_Last"] . ",\n\n";
$mail_body .= L_SUBMITORDER_BODY;
$mail_body .= L_SUBMITORDER_INVOICE . $UserInfo['Invoice'] .".\n\n";
$mail_body .= L_SUBMITORDER_THANKS;
file://list each item in the invoice and where each item is being shipped to
if ( listInvoiceContents(intval($UserInfo['Invoice']), $contentsString) )
{
$mail_body .= L_SUBMITORDER_INVOICE_CONTENTS;
$mail_body .= $contentsString;
}
else
{
file://output error message
print( htmlentities($contentsString) );
}
mail($billingAddress["Email"],
L_ORDER_CONFIRMATION,
$mail_body,
"From: " . EMAIL_FROM);
}#Slutt p� e-mail
file://send confirmation email ### Kopi til admin
$mail_body = L_SUBMITORDER_DEAR .
$billingAddress["Name_First"] . " " .
$billingAddress["Name_Last"] . ",\n\n";
$mail_body .= L_SUBMITORDER_BODY;
$mail_body .= L_SUBMITORDER_INVOICE . $UserInfo['Invoice'] .".\n\n";
$mail_body .= L_SUBMITORDER_THANKS;
file://list each item in the invoice and where each item is being shipped to
if ( listInvoiceContents(intval($UserInfo['Invoice']), $contentsString) )
{
$mail_body .= L_SUBMITORDER_INVOICE_CONTENTS;
$mail_body .= $contentsString;
}
else
{
file://output error message
print( htmlentities($contentsString) );
}
mail ("adminadsress",
L_ORDER_CONFIRMATION,
$mail_body,
"From: " . EMAIL_FROM);
#Slutt p� e-mail
----- Original Message -----
From: "Bob Bennett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 3:50 PM
Subject: [FreeTrade-dev] Email Confirm
> I have been trying to set up FT to send me (adminstrator) a CC of the confirmation
>email that the user recieves when the order is complete. I did find a thread in the
>archive that makes it sound somewhat simple but I not getting it to work.
>
> I assume that I'm looking in the right place (in actions/SUBMIT_ORDER)
>
> mail($billingAddress["Email"],
> L_ORDER_CONFIRMATION,
> $mail_body,
> "From: " . EMAIL_FROM);
>
> I'm no wizard..... so any assistance is appreciated.
>
> Thanks
> Bob Bennett
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
> _______________________________________________
> FreeTrade-dev mailing list
> [EMAIL PROTECTED]
> http://share.whichever.com/mailman/listinfo/freetrade-dev
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev