mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Set replyTo header when it is set
This commit is contained in:
parent
4ac8b8016d
commit
4f521521d6
@ -90,8 +90,6 @@ class notifications_email implements notifications_iface {
|
||||
*/
|
||||
public function send(array $_messages, $_subject = false, $_links = false, $_attachments = false, $_data = false)
|
||||
{
|
||||
unset ($_data);
|
||||
|
||||
$body_plain = $_messages['plain'].$this->render_links($_links, false, $this->preferences->external_mailclient);
|
||||
$body_html = "<html><body>\n".$_messages['html'].$this->render_links($_links, true, $this->preferences->external_mailclient)."</body>\n</html>\n";
|
||||
|
||||
@ -106,6 +104,10 @@ class notifications_email implements notifications_iface {
|
||||
|
||||
$this->mail->setFrom($this->sender->account_email, $this->sender->account_fullname);
|
||||
|
||||
if ( $_data && isset( $_data['reply_to'] ) ) {
|
||||
$this->mail->addAddress($_data['reply_to'], '', 'replyto');
|
||||
}
|
||||
|
||||
$this->mail->addHeader('Subject', trim($_subject)); // trim the subject to avoid strange wrong encoding problem
|
||||
if ($_messages['html'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user