Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new Mail();
- $mail->protocol = $this->config->get('config_mail_protocol');
- $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($this->config->get('config_email'));
- $mail->setFrom($this->config->get('config_email'));
- $mail->setSender(html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'));
- $mail->setSubject(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
- $mail->setHtml($html);
- $mail->setText($text);
- $mail->send();
Add Comment
Please, Sign In to add comment