PHPMailer Integration - by @cansei_vendi

PHPMailer Integration - by @cansei_vendi
Use PHPMailer to send emails from the store.

The standard email module does not work with all services, use this extension to resolve this issue.

Installation

  • Download the ZIP;
  • Install the extension using the OpenCart installer;
  • Update opencart modifications;
  • Ready to use.


Using

  • In manage stores, click on edit your store;
  • In the E-mail section, change the Library to PHPMailer;
  • Configure the other fields;
  • Ready to use.


Add blind carbon copy

Example:

$mail = new Mail($this->config->get('config_mail_engine'));
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');
$mail->smtp_username = $this->config->get('config_mail_smtp_username');
$mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');
$mail->smtp_port = $this->config->get('config_mail_smtp_port');
$mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');

$mail->setTo($order_info['email']);
$mail->setFrom($from);

$mail->addBCC('bcc@canseivendi.com.br');
$mail->addBCC('bcc2@canseivendi.com.br');


$mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
$mail->setSubject(html_entity_decode(sprintf($language->get('text_subject'), $order_info['store_name'], $order_info['order_id']), ENT_QUOTES, 'UTF-8'));
$mail->setHtml($this->load->view('mail/order_edit', $data));
$mail->send();




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.1.0.0_b, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3

Last Update
10 Jul 2020

Created
19 Jun 2020
90 Downloads
2 Comments
Decolip
Decolip
Member since: 17 Jun 2015

View all extensions Get Support