Go to the documentation of this file.
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}>";
static quotedPrintable( $string, $charset='')
Converts a string into quoted-printable format.
toString()
Return formatted and quoted address to insert into SMTP headers.
static newFromUser(User $user)
Create a new MailAddress object for the given user.
Stores a single person's name and email address.
getEmail()
Get the user's e-mail address.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
__construct( $address, $name=null, $realName=null)
wfIsWindows()
Check if the operating system is Windows.
getRealName()
Get the user's real name.
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.