Commit fa4311fa authored by Stanislav N. aka pztrn's avatar Stanislav N. aka pztrn Committed by mmn

Add "Date" header to mail, some clients require this to show corrent message receiving time.

parent c263bbcc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment