XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
xoopsmultimailer Class Reference
Inheritance diagram for xoopsmultimailer:

Public Member Functions

 __construct ()
 
 AddrFormat ($addr)
 
 Send ()
 
 SetLanguage ($lang_type='en', $lang_path='language/')
 

Data Fields

 $From = ''
 
 $FromName = ''
 
 $Mailer = 'mail'
 
 $Sendmail = '/usr/sbin/sendmail'
 
 $Host = ''
 
 $SMTPAuth = false
 
 $Username = ''
 
 $Password = ''
 

Detailed Description

Mailer Class

If you have problems sending mail with "mail()", you can edit the member variables to suit your setting. Login to administration and edit the settings through the admin panel. Administration »» Dashboard »» Settings »» Preferences »» Mail Setup

Definition at line 34 of file xoopsmultimailer.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constuctor

@access public

Returns
void

@global $xoopsConfig

Definition at line 120 of file xoopsmultimailer.php.

Member Function Documentation

◆ AddrFormat()

AddrFormat ( $addr)

Formats an address correctly. This overrides the default AddrFormat method which does not seem to encode $FromName correctly This method name is renamed from "addr_format", because method name in parent class is renamed. @access private

Parameters
$addr
Returns
string

Definition at line 154 of file xoopsmultimailer.php.

◆ Send()

Send ( )

Override PHPMailer Send() Add verification whether Sender property contains correct mail format.

Definition at line 170 of file xoopsmultimailer.php.

◆ SetLanguage()

SetLanguage ( $lang_type = 'en',
$lang_path = 'language/' )

Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.

Parameters
string$lang_typeType of language (e.g. Portuguese: "br")
string$lang_pathPath to the language file directory @access public
Returns
bool

Definition at line 190 of file xoopsmultimailer.php.

Field Documentation

◆ $From

$From = ''

Definition at line 42 of file xoopsmultimailer.php.

◆ $FromName

$FromName = ''

Definition at line 49 of file xoopsmultimailer.php.

◆ $Host

$Host = ''

Definition at line 85 of file xoopsmultimailer.php.

◆ $Mailer

$Mailer = 'mail'

Definition at line 66 of file xoopsmultimailer.php.

◆ $Password

$Password = ''

Definition at line 110 of file xoopsmultimailer.php.

◆ $Sendmail

$Sendmail = '/usr/sbin/sendmail'

Definition at line 76 of file xoopsmultimailer.php.

◆ $SMTPAuth

$SMTPAuth = false

Definition at line 92 of file xoopsmultimailer.php.

◆ $Username

$Username = ''

Definition at line 101 of file xoopsmultimailer.php.


The documentation for this class was generated from the following file: