55 if ( MAILER_ROUTINE ==
"smtp" && strlen( MAILER_SMTP_HOST ) > 5 )
57 $bCheckModul = extension_loaded(
'openssl');
60 $this->SMTPAuth =
true;
61 $this->SMTPSecure = MAILER_SMTP_SECURE;
62 $this->Port = MAILER_SMTP_PORT;
65 if ( $bCheckModul ===
true)
68 $this->Host = LEPTON_database::decryptstring(MAILER_SMTP_HOST);
69 $this->Username = LEPTON_database::decryptstring(MAILER_SMTP_USERNAME);
70 $this->Password = LEPTON_database::decryptstring(MAILER_SMTP_PASSWORD);
75 $this->Host = MAILER_SMTP_HOST;
76 $this->Username = MAILER_SMTP_USERNAME;
77 $this->Password = MAILER_SMTP_PASSWORD;
87 if ( defined(
"LANGUAGE" ) )
89 $this->SetLanguage( strtolower( LANGUAGE ),
"language" );
93 $this->CharSet = defined(
'DEFAULT_CHARSET' ) ? DEFAULT_CHARSET :
'utf-8';
96 if ( $this->FromName ==
'Root User' )
98 $this->FromName = isset( $_SESSION[
'DISPLAY_NAME' ] )
99 ? $_SESSION[
'DISPLAY_NAME' ]
100 : MAILER_DEFAULT_SENDERNAME
108 $this->From = SERVER_EMAIL;
111 $this->IsHTML(
true );
112 $this->WordWrap = 80;