skeedo Posted May 19, 2003 Posted May 19, 2003 I have added this in general.php to function tep_mail so I could send an extra email when I got an order: // Send message $message->build_message(); $message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject); $message->send('Bob', '[email protected]', $from_email_name, $from_email_address, $email_subject); } Unfortunately the emails to 'Bob' are being duplicated, why?
Ajeh Posted May 19, 2003 Posted May 19, 2003 The function is called twice in some places. If you add that to general.php it is always being done for each call. Two calls means double the emails to Bob ... :shock:
skeedo Posted May 19, 2003 Author Posted May 19, 2003 I see, probably to send an order email to the customer and an extra one to me. So how do I get just one order email to customer, me and Bob ? Apparently from the extra order email help text you can enter multiple email addresses...but it does not work.
skeedo Posted May 19, 2003 Author Posted May 19, 2003 Nm, got it. Just added this to checkout_process.php. tep_mail('', '[email protected]', EMAIL_TEXT_SUBJECT . ' #' . $insert_id, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');
Ajeh Posted May 19, 2003 Posted May 19, 2003 That works better. Did you try using the Send Extra emails option in the Admin?
skeedo Posted May 19, 2003 Author Posted May 19, 2003 Yes, it absolutely will not let me send more than one. This is the correct syntax, right? Name <[email protected]>, Name2 <[email protected]> When I did that, I only received one extra email addressed to Name; Name2. Wacked!
Ajeh Posted May 19, 2003 Posted May 19, 2003 Try just the email addresses without the names seperated with a comma and see if that works.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.