Advertisement
Guest User

Untitled

a guest
Mar 5th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. if (VERSION>='2.2.0.0') {
  2.  
  3.                         if (VERSION >= '3.0.0.0') {
  4.                             $mail = new Mail($this->config->get('config_mail_engine'));
  5.                         } else {
  6.                             $mail = new Mail();
  7.                             $mail->protocol = $this->config->get('config_mail_protocol');
  8.                         }
  9.  
  10.                         $mail->parameter = $this->config->get('config_mail_parameter');
  11.                         $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');
  12.                         $mail->smtp_username = $this->config->get('config_mail_smtp_username');
  13.                         $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');
  14.                         $mail->smtp_port = $this->config->get('config_mail_smtp_port');
  15.                         $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');
  16.  
  17.                     } elseif (VERSION=='2.1.0.1' || VERSION=='2.1.0.2' || VERSION == '2.0.3.1') {
  18.                         $mail = new Mail();
  19.                         $mail->protocol = $this->config->get('config_mail_protocol');
  20.                         $mail->parameter = $this->config->get('config_mail_parameter');
  21.                         $mail->smtp_hostname = $this->config->get('config_smtp_host');
  22.                         $mail->smtp_username = $this->config->get('config_smtp_username');
  23.                         $mail->smtp_password = $this->config->get('config_smtp_password');
  24.                         $mail->smtp_port = $this->config->get('config_smtp_port');
  25.                         $mail->smtp_timeout = $this->config->get('config_smtp_timeout');
  26.                     } else {
  27.                         $mail = new Mail($this->config->get('config_mail'));
  28.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement