55 if ( MAILER_ROUTINE ==
"smtp" && strlen( MAILER_SMTP_HOST ) > 5 )
59 $this->Host = MAILER_SMTP_HOST;
62 if ( MAILER_SMTP_AUTH ==
"true" && strlen( MAILER_SMTP_USERNAME ) > 1 && strlen( MAILER_SMTP_PASSWORD ) > 1 )
65 $this->SMTPAuth =
true;
66 $this->Username = MAILER_SMTP_USERNAME;
67 $this->Password = MAILER_SMTP_PASSWORD;
69 $this->SMTPSecure = MAILER_SMTP_SECURE;
70 $this->Port = MAILER_SMTP_PORT;
80 if ( defined(
"LANGUAGE" ) )
82 $this->SetLanguage( strtolower( LANGUAGE ),
"language" );
86 $this->CharSet = defined(
'DEFAULT_CHARSET' ) ? DEFAULT_CHARSET :
'utf-8';
89 if ( $this->FromName ==
'Root User' )
91 $this->FromName = isset( $_SESSION[
'DISPLAY_NAME' ] )
92 ? $_SESSION[
'DISPLAY_NAME' ]
93 : MAILER_DEFAULT_SENDERNAME
101 $this->From = SERVER_EMAIL;
104 $this->IsHTML(
true );
105 $this->WordWrap = 80;