MediaWiki master
|
Represent and format a single name and email address pair for SMTP. More...
Inherits Stringable.
Public Member Functions | |
__construct ( $address, $name=null, $realName=null) | |
__toString () | |
equals (self $other) | |
toString () | |
Format and quote address for insertion in SMTP headers. | |
Static Public Member Functions | |
static | newFromUser (UserEmailContact $user) |
Public Attributes | |
string | $address |
string | $name |
string | $realName |
Represent and format a single name and email address pair for SMTP.
Used by Emailer, e.g. via EmailUser or EmailNotification.
Definition at line 36 of file MailAddress.php.
MailAddress::__construct | ( | $address, | |
$name = null, | |||
$realName = null ) |
string | $address | String with an email address |
string | null | $name | Human-readable name if a string address is given |
string | null | $realName | Human-readable real name if a string address is given |
Definition at line 49 of file MailAddress.php.
MailAddress::__toString | ( | ) |
Definition at line 104 of file MailAddress.php.
MailAddress::equals | ( | self | $other | ) |
|
static |
UserEmailContact | $user |
Definition at line 60 of file MailAddress.php.
References MediaWiki\Mail\UserEmailContact\getEmail(), MediaWiki\Mail\UserEmailContact\getRealName(), and MediaWiki\Mail\UserEmailContact\getUser().
MailAddress::toString | ( | ) |
Format and quote address for insertion in SMTP headers.
Definition at line 81 of file MailAddress.php.
References $wgEnotifUseRealName, and wfIsWindows().
Referenced by UserMailer\sendInternal().
string MailAddress::$address |
Definition at line 40 of file MailAddress.php.
string MailAddress::$name |
Definition at line 38 of file MailAddress.php.
string MailAddress::$realName |
Definition at line 39 of file MailAddress.php.