i posted this in the forum earlier, but it needs a better home here.
when a customer completes a purchase, they receive an email containing the order details. this mod sends a "blind carbon copy" of that email to the shop admin email address.
hopefully we will see this or a similar change integrated into the core opencart product. i feel it would be really useful as a configurable feature.
instructions are included in install.txt
works with opencart 0.7.6.1
when a customer completes a purchase, they receive an email containing the order details. this mod sends a "blind carbon copy" of that email to the shop admin email address.
hopefully we will see this or a similar change integrated into the core opencart product. i feel it would be really useful as a configurable feature.
instructions are included in install.txt
works with opencart 0.7.6.1
i never got to test this behavior, but my assumption is that the newsletter correspondence will also have this issue.
i'm guessing all recipients of the newsletter are going to be able to see everyone else's e-mail address in the TO list, which is NOT what we want in any type of mass mailing. i think the change i supplied to support BCC is part of the solution, but the newsletter script needs to change to use BCC instead of TO.
shouldn't be too hard... but the problem is, who goes in the TO field? maybe the shop address? i'm not sure this is how major mailing list scripts work. any advice here would be appreciated.
i'm guessing all recipients of the newsletter are going to be able to see everyone else's e-mail address in the TO list, which is NOT what we want in any type of mass mailing. i think the change i supplied to support BCC is part of the solution, but the newsletter script needs to change to use BCC instead of TO.
shouldn't be too hard... but the problem is, who goes in the TO field? maybe the shop address? i'm not sure this is how major mailing list scripts work. any advice here would be appreciated.
In admin/controller/newsletter.php
I've change line
$mail->setTo($email);
to
$mail->setBcc($email);
but I doesn't work and there appears - "Error: To not set"
Of course I've got in library/mail/mail.php Bcc support (as in attachment)
Any suggestions?
I've change line
$mail->setTo($email);
to
$mail->setBcc($email);
but I doesn't work and there appears - "Error: To not set"
Of course I've got in library/mail/mail.php Bcc support (as in attachment)
Any suggestions?
Attachments
[The extension has been deactivated and can no longer be displayed.]
ytr - you've got the basic idea, but an email still needs a "TO" address. my thought was to put the shop address in the TO field, and BCC all the customers. try this:
why is mail.php attached? is this any different from the mail.php attached in my mod zip?
Code: Select all
$mail->setTo($config->get('config_email'));
$mail->setBcc($email);
Last edited by d77 on Sun Sep 30, 2007 9:01 pm, edited 1 time in total.
I've been trying to get the BCC to admin mod working, and not having any luck. I AM receiving the order email from OC as the customer, so the mail server isn't the problem and the mail script is working fine otherwise. I have done everything listed here:
http://forum.opencart.com/index.php/topic,427.0.html
Multiple times, and still not getting the BCC email to the admin after an order.
I need this working for this particular (my first setup with OC - love it!), as my client is not the most web-savy and would be better off reading emails with the order than going into the system itself (someone else will be updating the status of the orders).
Anyone? Thanks in advance!
http://forum.opencart.com/index.php/topic,427.0.html
Multiple times, and still not getting the BCC email to the admin after an order.
I need this working for this particular (my first setup with OC - love it!), as my client is not the most web-savy and would be better off reading emails with the order than going into the system itself (someone else will be updating the status of the orders).
Anyone? Thanks in advance!
To administer email server settings and carbon copy to store manager:
apply the changes in the zip to:
/admin/controller/settings.php
/admin/language/english/controller/setting.php
/library/mail/mail.php
to send mail (like in admin/controller/mail.php) simply use
This will send an email out to your client without exposing other emails (in case of newsletter), send to your email as the to, and will let you specify through your admin panel (under Admin->Configuration->Setting Mail tab) if a carbon copy is needed!
apply the changes in the zip to:
/admin/controller/settings.php
/admin/language/english/controller/setting.php
/library/mail/mail.php
to send mail (like in admin/controller/mail.php) simply use
Code: Select all
if ($email) {
$mail->setTo('Confidential Recipients <' .$config->get('config_email').'>');
$mail->setCc($config->get('config_email_cc'));
$mail->setBcc($email);
$mail->setFrom($config->get('config_email'));
$mail->setSender($config->get('config_store'));
$mail->setSubject($request->get('subject', 'post'));
$mail->setHtml($request->get('content', 'post'));
$mail->send();
}
Attachments
Hi Guys,
I've tried getting this working and had no luck, newsletters are still coming through with all customers emails in the To: field.
I've updated the 3 files in the zip and my admin/mail/mail.php file to include the snippet above from Lev but nothing appears to have changed when I send newsletters.
I've attached my admin/mail/mail.php file here if anyone could see if anything is missing/incorrect?
I have set a mail in my store config for the site so it's not missing that info.
Thanks!
I've tried getting this working and had no luck, newsletters are still coming through with all customers emails in the To: field.
I've updated the 3 files in the zip and my admin/mail/mail.php file to include the snippet above from Lev but nothing appears to have changed when I send newsletters.
I've attached my admin/mail/mail.php file here if anyone could see if anything is missing/incorrect?
I have set a mail in my store config for the site so it's not missing that info.
Thanks!
Attachments
[The extension has been deactivated and can no longer be displayed.]
Have done this thanks bruce, any ideas how to get the bcc option into my admin panel? Admin still does not receive order email...bruce wrote: There are two locations to change in admin\controller\newsletter.php
The first is in the insert() function, the second in the update() function.
and library\cart\order.php has been modified to look as follows?
Code: Select all
if ($this->config->get('config_email_send'))
{
$this->mail->setTo($this->data['email']);
$this->mail->setBcc($this->config->get('config_email'));
$this->mail->setFrom($this->config->get('config_email'));
$this->mail->setSender($this->config->get('config_store'));
$this->mail->setSubject($this->data['email_subject']);
$this->mail->setText($this->data['email_text']);
$this->mail->setHtml($this->data['email_html']);
$this->mail->send();
}
Guys,
I apologize for leaving you hanging for so long... I see there are questions... I will try to answer as best as I can.
Please let me know the specifics of your difficulties (Admin panel settings does not show email server settings, all looks fine but email is never sent to bcc recepients, excetra... i will ensure we get you guys working
I apologize for leaving you hanging for so long... I see there are questions... I will try to answer as best as I can.
Please let me know the specifics of your difficulties (Admin panel settings does not show email server settings, all looks fine but email is never sent to bcc recepients, excetra... i will ensure we get you guys working
jamble,
It looks like your code changes are good, you just need to change the code in /admin/controller/newsletter.php!
Currently, you have this around line 51 of that file for the insert finction and line 104 for the update function (AS BRUCE SAID, BOTH MUST BE CHANGED)! :
change the code to use the suggested settings (read brunces latest post) and you will be golden
It looks like your code changes are good, you just need to change the code in /admin/controller/newsletter.php!
Currently, you have this around line 51 of that file for the insert finction and line 104 for the update function (AS BRUCE SAID, BOTH MUST BE CHANGED)! :
Code: Select all
if ($email) {
$mail->setTo($email);
$mail->setFrom($config->get('config_email'));
$mail->setSender($config->get('config_store'));
$mail->setSubject($request->get('subject', 'post'));
$mail->setHtml($request->get('content', 'post'));
$mail->send();
}
Gibpat,
If you do not see the email server settings in your admin panel, ensure
The code changes i included for the /admin/controler/settings.php, admin/language/english/controller/setting.php and admin/template/default/controller/setting.php have all been applied!!
If you do not see the email server settings in your admin panel, ensure
The code changes i included for the /admin/controler/settings.php, admin/language/english/controller/setting.php and admin/template/default/controller/setting.php have all been applied!!
I must be going blind, i cannot find any instructions for admin/template/default/controller/setting.php, should i be looking elsewhere?lev wrote: Gibpat,
If you do not see the email server settings in your admin panel, ensure
The code changes i included for the /admin/controler/settings.php, admin/language/english/controller/setting.php and admin/template/default/controller/setting.php have all been applied!!
Who is online
Users browsing this forum: No registered users and 21 guests