Moodle  2.2.1
http://www.collinsharper.com
moodle_phpmailer Class Reference
Inheritance diagram for moodle_phpmailer:
Collaboration diagram for moodle_phpmailer:

Public Member Functions

 __construct ()
 AddCustomHeader ($custom_header)
 EncodeHeader ($str, $position= 'text')
 EncodeQP ($string, $line_max=76, $space_conv=false)

Static Public Member Functions

static RFCDate ()

Detailed Description

Moodle Customised version of the PHPMailer class

This class extends the stock PHPMailer class in order to make sensible configuration choices, and behave in a way which is friendly to moodle.

Since:
Moodle 2.0

Definition at line 45 of file moodle_phpmailer.php.


Constructor & Destructor Documentation

Constructor - creates an instance of the PHPMailer class with Moodle defaults.

Definition at line 51 of file moodle_phpmailer.php.


Member Function Documentation

AddCustomHeader ( custom_header)

Extended AddCustomHeader function in order to stop duplicate message-ids http://tracker.moodle.org/browse/MDL-3681

Reimplemented from PHPMailer.

Definition at line 63 of file moodle_phpmailer.php.

EncodeHeader ( str,
position = 'text' 
)

Use internal moodles own textlib to encode mimeheaders. Fall back to phpmailers inbuilt functions if not

Reimplemented from PHPMailer.

Definition at line 76 of file moodle_phpmailer.php.

Here is the call graph for this function:

EncodeQP ( string,
line_max = 76,
space_conv = false 
)

This is a temporary replacement of the parent::EncodeQP() that does not call quoted_printable_encode() even if it is available. See MDL-23240 for details

See also:
parent::EncodeQP() for full documentation

Reimplemented from PHPMailer.

Definition at line 110 of file moodle_phpmailer.php.

Here is the call graph for this function:

static RFCDate ( ) [static]

Replaced function to fix tz bug: http://tracker.moodle.org/browse/MDL-12596

Reimplemented from PHPMailer.

Definition at line 94 of file moodle_phpmailer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations