At 16:18 30/08/00 +0200, you wrote:
>Hi!
>
>Does anyone have handy the code for mailing a copy to Store Manager, when
>a order is made ?
>
>Bjarne
If you add the following to actions/SUBMIT_ORDER, after line 359 ("From: "
. EMAIL_FROM);)
############################
// send mail to admin sales
//list each item in the invoice and where each item is being shipped to
$mail_body = L_SUBMITORDER_INVOICE . $UserInfo['Invoice'] .".\n\n";
if ( listInvoiceContents(intval($UserInfo['Invoice']), $contentsString) )
{
$mail_body .= L_SUBMITORDER_INVOICE_CONTENTS;
$mail_body .= $contentsString;
}
else
{
//output error message
print( htmlentities($contentsString) );
}
mail(EMAIL_TO,
L_ORDER_RECEIVED,
$mail_body,
"From: " . EMAIL_FROM);
#####################################
You might have to add things to the language module, eg L_ORDER_RECEIVED
Make sure that EMAIL_FROM is set up properly in global_settings, as well as
SEND_EMAIL to TRUE
I hope it works for you.
I have just done a quick trawl through the book Professional PHP
Programming to see is CC can be used, no mention, but adding something like
"CC: " . EMAIL_FROM" to the line 359 might work.
>------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Site: http://www.working-dogs.com/freetrade/
>Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]