From: Stanislav N. aka pztrn Date: Sun, 2 Nov 2014 07:19:15 +0000 (+0300) Subject: Add "Date" header to mail, some clients require this to show corrent message receivin... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa4311fa17015e0c34067e0e08f61bbf12771e77;p=quix0rs-gnu-social.git Add "Date" header to mail, some clients require this to show corrent message receiving time. --- 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;