I think this still works, though I haven't tested it in a long time. If it doesn't, take a look at the file and the edit it makes, and then look at the mail.php file in OpenCart 3.0, and you should be able to figure out where the edit goes.
viewtopic.php?f=131&t=27531
viewtopic.php?f=131&t=27531
Thanks for that. I edited system/library/mail/mail.php
and inserted the 4th line (email address changed). Does that look right to you ?
and inserted the 4th line (email address changed). Does that look right to you ?
Code: Select all
$header = 'MIME-Version: 1.0' . PHP_EOL;
$header .= 'Date: ' . date('D, d M Y H:i:s O') . PHP_EOL;
$header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL;
$header .= 'Bcc: xxxxxxxxxxx@xxxxxxxxxx.co.uk' . PHP_EOL;
if (!$this->reply_to) {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL;
} else {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->reply_to) . '?= <' . $this->reply_to . '>' . PHP_EOL;
}
Make sure you refresh your ocMod cache in Extensions > Modifications, in case some other file is modifying that same file. If that doesn't fix it, try this edit:
Code: Select all
IN:
/system/library/mail/mail.php
AFTER:
$header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL;
ADD:
$email = 'your@email.com';
$header .= 'Bcc: =?UTF-8?B?' . base64_encode($email) . '?= <' . $email . '>' . PHP_EOL;
Who is online
Users browsing this forum: No registered users and 247 guests