From 1af1f91b6a714459f261aaaf2fab7e12b8e06457 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 23 Jan 2014 17:02:59 -0600
Subject: [PATCH] Add Return-Path header for outbound SMTP mail

---
 include/class.mailer.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/class.mailer.php b/include/class.mailer.php
index 21a7d157d..f3aa6e43e 100644
--- a/include/class.mailer.php
+++ b/include/class.mailer.php
@@ -109,7 +109,8 @@ class Mailer {
                 'Subject' => $subject,
                 'Date'=> date('D, d M Y H:i:s O'),
                 'Message-ID' => $messageId,
-                'X-Mailer' =>'osTicket Mailer'
+                'X-Mailer' =>'osTicket Mailer',
+                'Return-Path' => $this->getEmail()->getEmail(),
                );
 
         //Set bulk/auto-response headers.
-- 
GitLab