From fa4311fa17015e0c34067e0e08f61bbf12771e77 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 2 Nov 2014 10:19:15 +0300 Subject: [PATCH] Add "Date" header to mail, some clients require this to show corrent message receiving time. --- lib/mail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mail.php b/lib/mail.php index 507b9254d3..9c3342a8cc 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -148,6 +148,7 @@ function mail_to_user(&$user, $subject, $body, $headers=array(), $address=null) $recipients = $address; $profile = $user->getProfile(); + $headers['Date'] = date("r", time()); $headers['From'] = mail_notify_from(); $headers['To'] = $profile->getBestName() . ' <' . $address . '>'; $headers['Subject'] = $subject; -- 2.39.5