Jump to content

[Solved] BCC copy of order confirmation mail


Recommended Posts

Hi

 

I want to receive o BCC copy of the users order confirmation mail. I know that there is a the module mailalerts, and it is working form me, but i would like to receive the copy of the users mail. So when i click on "reply", the recepient mail address would be the customer address and the message goes to the same "conversation".

 

This solution (forum link) sends not a BCC, but two different mails. But if someone knows how to change it, it would be great. (It sends "copies" of all mails form the site, not only the order confirm mail)

 

I have also tried to redirect all emails from the server as BCC in the hosting settings, but this solution works only for mails sendet directly from the mail box, not for mails sendet from the site.

 

If someone can help ...thanks :)

 

presta 1.4

Link to comment
Share on other sites

Ok, i have solved it on my own.

 

In the file tools/swift/swift.php I add this code arround line 360

 

if ($recipients instanceof Swift_Address)

{

$list = new Swift_RecipientList();

$list->addTo($recipients);

 

/* my code */

$list->addBcc('[email protected]');

/* my code end */

 

}

 

Now it sends BCC of all emails sendet to customers to [email protected]. Everything seems to worsk as it should.

  • Like 5
Link to comment
Share on other sites

  • 4 months later...

tools/swift/Swift.php

 

great solution but in this way you receive all emails right?

 

So if the customer orders e.g. through bank-wire I will receive 2 emails

1 Your order is placed (useful email)

2 you decided to pay with bank-wire (useless email)

 

did you find a workaround here?

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...
  • 2 weeks later...
  • 2 weeks later...

OK, I found solution for 1.5.6.

$list->addBcc('[email protected]');

This line should be moved outside of if-statement.

 

In correct way it should be like here:

if ($recipients instanceof Swift_Address)
{
  $list = new Swift_RecipientList();
  $list->addTo($recipients);
}

/* my code */
$list->addBcc('[email protected]');
/* my code end */
  • Like 3
Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...
  • 1 month later...

I confirm it's working fine in 1.6.09.

Just copy the code in red into the tools/swift/swift.php file, after this:

 

if ($recipients instanceof Swift_Address)
{
$list = new Swift_RecipientList();
$list->addTo($recipients);
}

 

/* my code */
$list->addBcc('[email protected]');
/* my code end */

 

Of course, add your own mail adress or addresses :)

 

Thank you for sharing!

  • Like 1
Link to comment
Share on other sites

I am having problems sending emails to customers, i am geting all emails that should be going to them. also i get emails when i say shipped it gos to me and not them. when i do a message to them i say send to customer and it gos to me. this is first time doing this as tired of paying people and not doing right. email me [email protected]. Iwas told to change something under tools on a line there but have no idea what i am being told how to get there and do it.

Link to comment
Share on other sites

  • 3 weeks later...

I confirm it's working fine in 1.6.09.

Just copy the code in red into the tools/swift/swift.php file, after this:

 

if ($recipients instanceof Swift_Address)

{

$list = new Swift_RecipientList();

$list->addTo($recipients);

}

 

/* my code */

$list->addBcc('[email protected]');

/* my code end */

 

Of course, add your own mail adress or addresses :)

 

Thank you for sharing!

Hi, thank you much. Nobody was able to help me but I luckily found this topic and this is exactly what I wanted. Thank you once more for sharing this. 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 4 months later...
  • 10 months later...
  • 1 month later...
  • 1 month later...
×
×
  • Create New...