----- Original Message -----
Sent: Friday, September 15, 2000 9:48
AM
Subject: [FreeTrade] Problems with the
email store manager thread
Hello,
I have tried to enact the option below from an
earlier discussion (thread) but have had not luck. Has anyone been able to
successfully get the invoice details sent to the store manager? Is the below
code correct?
Regards
Paul
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.
Regards,
Paul Ashton
Internet Ideas
P.O. Box
40
Prahran, 3181
Australia
Ph: +61 3 9533 8864
Mobile: 0411
584 989
www.ideas.net.au
[EMAIL PROTECTED]