]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add "Date" header to mail, some clients require this to show corrent message receivin...
authorStanislav N. aka pztrn <pztrn@pztrn.name>
Sun, 2 Nov 2014 07:19:15 +0000 (10:19 +0300)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 3 Nov 2014 18:00:19 +0000 (19:00 +0100)
lib/mail.php

index 507b9254d3a4a64732493e10d29a0025add08f04..9c3342a8cc83ed3fe2d5c45c58937ccdccccfd90 100644 (file)
@@ -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;