Marg Posted March 17, 2004 Share Posted March 17, 2004 I need to add an additional email address to receive the info sent on the contact us page. (I need it to go to 2 people) I have read about the send_extra_order_email, but can't quite see how to impliment this with the contact us page. I have created a new field in the database called: SEND_EXTRA_ORDER_EMAILS_TO_NANCY with all the appropriate stuff, but how do I call it This is what I have done and get an internal server error: tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS_CATALOG, EMAIL_REQUEST, 'From:' . "\t" . $customer_name . "\n" . 'Email:' . "\t" . $email . "\n" . 'Fed ID:' . "\t" . $suburb . "\n" . 'Company:' . "\t" . $company . "\n" . 'Address:' . "\t" . $street_address . "\n" . 'City:' . "\t" . $city . "\n" . 'State:' . "\t" . $state . "\n" . 'Zip:' . "\t" . $postcode . "\n" . 'Phone:' . "\t" . $phone . "\n\n" . '------------------------------------------------------' . "\n\n" . $HTTP_POST_VARS['enquiry1'] . "\n\n" . '------------------------------------------------------' . "\n\n" . 'Office Use:' . "\t" . "\n" . 'Loggin Name:' . "\t" . $customer_name . "\n" . 'Loggin email:' . "\t" . $customer_email . "\n" . 'IP Address:' . "\t" . $REMOTE_ADDR . "\n" . 'Host Address:' . "\t" . gethostbyaddr($REMOTE_ADDR) . "\n", $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email']); tep_mail(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO_NANCY, EMAIL_REQUEST, 'From:' . "\t" . $customer_name . "\n" . 'Email:' . "\t" . $email . "\n" . 'Fed ID:' . "\t" . $suburb . "\n" . 'Company:' . "\t" . $company . "\n" . 'Address:' . "\t" . $street_address . "\n" . 'City:' . "\t" . $city . "\n" . 'State:' . "\t" . $state . "\n" . 'Zip:' . "\t" . $postcode . "\n" . 'Phone:' . "\t" . $phone . "\n\n" . '------------------------------------------------------' . "\n\n" . $HTTP_POST_VARS['enquiry1'] . "\n\n" . '------------------------------------------------------' . "\n\n" . 'Office Use:' . "\t" . "\n" . 'Loggin Name:' . "\t" . $customer_name . "\n" . 'Loggin email:' . "\t" . $customer_email . "\n" . 'IP Address:' . "\t" . $REMOTE_ADDR . "\n" . 'Host Address:' . "\t" . gethostbyaddr($REMOTE_ADDR) . "\n", $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email']); Any assistance will be greatly appreciated. Marg Link to comment Share on other sites More sharing options...
Marg Posted March 17, 2004 Author Share Posted March 17, 2004 OK... it was way too simple... I added the new address to the admin config like this [email protected];[email protected] and it worked. Live and learn Thanks anyhoo, Marg Link to comment Share on other sites More sharing options...
Marg Posted March 17, 2004 Author Share Posted March 17, 2004 OK... Not as simple as I thought... Now 1st email address receives nothing. I guess I need to have it sent as an additional email address. Could someone look at the above and give me a hint as to why I receive an internal error? Thanks, Marg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.