Add "Date" header to mail, some clients require this to show corrent message receiving time.
This commit is contained in:
parent
c263bbcca7
commit
fa4311fa17
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user