|
MediaWiki master
|
Represent and format a single name and email address pair for SMTP. More...
Inherits Stringable.

Public Member Functions | |
| __construct (public string $address, ?string $name=null, ?string $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 | $name |
| string | $realName |
Represent and format a single name and email address pair for SMTP.
Used by Emailer, e.g. via EmailUser.
Definition at line 24 of file MailAddress.php.
| MediaWiki\Mail\MailAddress::__construct | ( | public string | $address, |
| ?string | $name = null, | ||
| ?string | $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 35 of file MailAddress.php.
References MediaWiki\Mail\MailAddress\$name, and MediaWiki\Mail\MailAddress\$realName.
| MediaWiki\Mail\MailAddress::__toString | ( | ) |
Definition at line 85 of file MailAddress.php.
| MediaWiki\Mail\MailAddress::equals | ( | self | $other | ) |
Definition at line 54 of file MailAddress.php.
|
static |
Definition at line 47 of file MailAddress.php.
| MediaWiki\Mail\MailAddress::toString | ( | ) |
Format and quote address for insertion in SMTP headers.
Definition at line 63 of file MailAddress.php.
Referenced by MediaWiki\Mail\UserMailer\sendInternal().
| string MediaWiki\Mail\MailAddress::$name |
Definition at line 26 of file MailAddress.php.
Referenced by MediaWiki\Mail\MailAddress\__construct().
| string MediaWiki\Mail\MailAddress::$realName |
Definition at line 27 of file MailAddress.php.
Referenced by MediaWiki\Mail\MailAddress\__construct().