Silverado05 Posted June 29, 2007 Share Posted June 29, 2007 Hello, I am doing some testing since I have changed gateway providers. I have come across a small issue that I don't like. I have noticed that the order emails that are being sent out are coming from the right address but it is it shows my name as the sender. How do I go about changing this to something like my store name instead of my own name as I believe this is a little unprofessional to see these emails being sent with my name. -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works. Link to comment Share on other sites More sharing options...
Silverado05 Posted June 29, 2007 Author Share Posted June 29, 2007 Would I need to change this in email header, and if so where would this be located? -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works. Link to comment Share on other sites More sharing options...
knifeman Posted June 29, 2007 Share Posted June 29, 2007 Would I need to change this in email header, and if so where would this be located?-Thanks I think it takes the store owner name from admin configuration. Tim Link to comment Share on other sites More sharing options...
Silverado05 Posted June 29, 2007 Author Share Posted June 29, 2007 Yea that is what I was thinking also. Where is the file that sends these emails so I can't code it to the store name instead of the store owner? -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works. Link to comment Share on other sites More sharing options...
germ Posted June 29, 2007 Share Posted June 29, 2007 I think towards the bottom of "/catalog/checkout_process.php" tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Just in case you (or anyone else reading this) doesn't know the parameters for tep_mail, here they are: tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
knifeman Posted June 29, 2007 Share Posted June 29, 2007 Yea that is what I was thinking also. Where is the file that sends these emails so I can't code it to the store name instead of the store owner? -Thanks Wouldn't it be easier to change the owners name to the store name in your admin? Tim Link to comment Share on other sites More sharing options...
Silverado05 Posted June 29, 2007 Author Share Posted June 29, 2007 Yes and No, If you change the name of the owner to the Store Name then everywhere else it will output the Store Name where I want the owners name. That's why I just wanted to hard code the email. Ok now I have gone to checkout_process.php and admin/orders.php and changed all STORE_OWNER to STORE_NAME but it is still sending emails as from the Store Owners name. Any other ideas of where to change this. Below I have attached the checkout_process.php, maybe someone can see something I missed or know of some other place to look and change? -Thanks // lets start with the email confirmation // START HTML Invoice if (EMAIL_INVOICE == 'true') { require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE); } else { // END HTML Invoice $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } //<!-- Tracking contribution begin --> tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS); //<!-- Tracking contribution end --> // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { //<!-- Tracking contribution begin --> tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2, $email_order, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS); //<!-- Tracking contribution end --> } // START HTML Invoice } // END HTML Invoice // load the after_process function from the payment modules $payment_modules->after_process(); $cart->reset(true); Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works. Link to comment Share on other sites More sharing options...
Silverado05 Posted July 2, 2007 Author Share Posted July 2, 2007 Ok well for the meantime I have just changed this in the admin section and I guess until it poses a problem I can leave it that way. The one thing I really would like to change is when I receive an order it comes from the customers email address in which they signed up with. While that is all good is their a way I can change who it is sent from. I use to get orders from one of my emails address but now I don't. Is their somewhere I can set this back on or change who is says the email is from? -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.