MediaWiki  1.23.0
MailAddress Class Reference

Stores a single person's name and email address. More...

Public Member Functions

 __construct ( $address, $name=null, $realName=null)
 
 __toString ()
 
 toString ()
 Return formatted and quoted address to insert into SMTP headers. More...
 

Detailed Description

Stores a single person's name and email address.

These are passed in via the constructor, and will be returned in SMTP header format when requested.

Definition at line 32 of file UserMailer.php.

Constructor & Destructor Documentation

◆ __construct()

MailAddress::__construct (   $address,
  $name = null,
  $realName = null 
)
Parameters
string | User$addressstring with an email address, or a User object
string$namehuman-readable name if a string address is given
string$realNamehuman-readable real name if a string address is given

Definition at line 38 of file UserMailer.php.

References $name, and name.

Member Function Documentation

◆ __toString()

MailAddress::__toString ( )

Definition at line 75 of file UserMailer.php.

References toString().

◆ toString()

MailAddress::toString ( )

Return formatted and quoted address to insert into SMTP headers.

Returns
string

Definition at line 54 of file UserMailer.php.

References $name, global, name, UserMailer\quotedPrintable(), and wfIsWindows().

Referenced by __toString().


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