magento: extra email recipients in order confirmation email

342 views Asked by At

i have a peculiar problem, when customers receive an order confirmation email strangely this is also sent to some other older customers. I have searched file after file and do not know where this code is inserted, a previous developer inserted this and now very important i remove it. Which file is responsible to send out the new order confirmation email?

1

There are 1 answers

2
Ketan Borada On

Check Your code on below location

app/code/core/Mage/Sales/Model/Order.php 

Or(if file is override)

app/code/local/Mage/Sales/Model/Order.php

and find function around line no.1274

public function queueNewOrderEmail($forceMode = false)

and check $emailInfo->addTo($this->getCustomerEmail(), $customerName); function