Post by straightlight » Fri May 20, 2016 10:51 pm

This contribution allows merchants to send BCC emails from the original Mail() class from OC.

Simply upload the XML file. Then, the:

Code: Select all

$mail->setBcc(explode(',', $this->config->get('config_mail_alert'))); 
can be placed right below the: '$mail->setSender' line in each appropriate paragraph.

Then, each:

Code: Select all

// Send to additional alert emails
					$emails = explode(',', $this->config->get('config_mail_alert'));
	
					foreach ($emails as $email) {
						if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
							$mail->setTo($email);
							$mail->send();
						}
					}
can be removed.

Take note that SMTP Auth is not compatible with this contribution.

Contribution: http://www.opencart.com/index.php?route ... n_id=26735

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 15 guests