Skip to content
Snippets Groups Projects
Commit 015d45a6 authored by aydreeihn's avatar aydreeihn
Browse files

Email Name Format

This commit further corrects issues where emails were being sent out with names being improperly formatted if the name format is set as 'Last, First' or if it has special characters.
parent 4a4d5452
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