]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mail.php
Add "Date" header to mail, some clients require this to show corrent message receivin...
[quix0rs-gnu-social.git] / 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;