Skip to content
Snippets Groups Projects
Unverified Commit 5a10d9cd authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4500 from aydreeihn/issue/email-name-format

Email Name Format
parents b5faa930 015d45a6
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ implements EmailContact, ITicketUser {
return Format::htmlchars($this->toString());
}
function toString() {
return sprintf('%s <%s>', $this->getName(), $this->getEmail());
return sprintf('"%s" <%s>', $this->getName(), $this->getEmail());
}
function getId() {
......
......@@ -678,7 +678,7 @@ implements TemplateVariable {
$this->getDomain());
if ($this->getName())
$this->address = sprintf('%s <%s>',
$this->address = sprintf('"%s" <%s>',
$this->getName(),
$this->email);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment