nickyp103
I'm curious, apply the below changes, add the @ symbol back, and retest to see if this works.
diff --git a/include/class.mailer.php b/include/class.mailer.php
index dbf67fcf..0d606faa 100644
--- a/include/class.mailer.php
+++ b/include/class.mailer.php
@@ -353,7 +353,7 @@ class Mailer {
// Set our custom Message-Id
$message->setMessageId($messageId);
// Set From Address
- $message->setFrom($from->getEmail(), $from->getName());
+ $message->setFrom($from->getEmail(), $from->getDisplayName());
// Set Subject
$message->setSubject($subject);
diff --git a/include/class.user.php b/include/class.user.php
index 33f37032..28318533 100644
--- a/include/class.user.php
+++ b/include/class.user.php
@@ -757,6 +757,8 @@ implements TemplateVariable {
case 'host':
case 'domain':
return $this->_info->host;
+ case 'display':
+ return $this->_info->personal;
case 'personal':
return trim($this->_info->personal, '"');
case 'mailbox':
@@ -784,6 +786,10 @@ implements TemplateVariable {
return $this->getVar('personal');
}
+ function getDisplayName() {
+ return $this->getVar('display');
+ }
+
function getMailbox() {
return $this->getVar('mailbox');
}
Cheers.