55 $this->name = strval(
$name );
75 if ( !$this->address ) {
79 # PHP's mail() implementation under Windows is somewhat shite, and
80 # can't handle "Joe Bloggs <joe@bloggs.com>" format email addresses,
81 # so don't bother generating them
90 if ( $quoted ===
$name ) {
91 $quoted =
'"' . addslashes( $quoted ) .
'"';
94 return "$quoted <{$this->address}>";
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
wfIsWindows()
Check if the operating system is Windows.
Stores a single person's name and email address.
toString()
Return formatted and quoted address to insert into SMTP headers.
__construct( $address, $name=null, $realName=null)
static newFromUser(User $user)
Create a new MailAddress object for the given user.
static quotedPrintable( $string, $charset='')
Converts a string into quoted-printable format.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
getName()
Get the user name, or the IP of an anonymous user.
getRealName()
Get the user's real name.
getEmail()
Get the user's e-mail address.