Hi,
I am using OC 3.0.2, and I have to send the order e-mail to 2 additional hardcoded e-mail addresses.
My approach would be to edit the PHP-Script which sends the order e-mail.
Would be the script /web/system/library/mail/mail.php and following code the right place?
if ($this->parameter) {
mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
} else {
mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
}
Thanks for any help.
R.
Well that would send a copy of all outgoing mail not just order emails. I personally remove the default mail adapter class on all our client installs, pull in PHPmailer via composer and use a modified mail class.
I can then just add a bcc line to the controller/mail/order mail function.
Also, we get less emails going to spam with phpMailer and overall less SMTP issues.
You may want to look at the marketplace for something already made.
I can then just add a bcc line to the controller/mail/order mail function.
Code: Select all
// send a blind copy.
$mail->setBcc($this->config->get('config_bcc_email'));
You may want to look at the marketplace for something already made.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
I think you shouldn't use these hardcode to send multiple emails of order info. simply add email here:-rgroetz wrote: ↑Mon Jun 04, 2018 12:41 amHi,
I am using OC 3.0.2, and I have to send the order e-mail to 2 additional hardcoded e-mail addresses.
My approach would be to edit the PHP-Script which sends the order e-mail.
Would be the script /web/system/library/mail/mail.php and following code the right place?
if ($this->parameter) {
mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
} else {
mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
}
Thanks for any help.
R.
Admin-> Setting->Store->[Edit]->Mail Tab
Field name "Additional Alert Mail" here you can put mulitple email comma seprated.
Let me know if your problem still didn't solved.
Email: ravikumar1986ravi@gmail.com
Skype: ravi1986kumar
OpenCart Support | Please email at: devinlabsolutions@gmail.com
Who is online
Users browsing this forum: Semrush [Bot] and 265 guests