Code: Select all
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z"),
This is not according to RFC2822. IMHO it's better to use predefined date/time constants:
Code: Select all
"Date: " . date(DATE_RFC2822),
Patch:
Code: Select all
--- email_functions.inc_original.php 2011-10-19 20:08:58.000000000 +0200
+++ email_functions.inc_new.php 2011-12-29 16:03:01.002121100 +0100
@@ -82,7 +82,7 @@
"Reply-To: $hesk_settings[noreply_mail]",
"Return-Path: $hesk_settings[webmaster_mail]",
"Subject: " . $subject,
- "Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z"),
+ "Date: " . date(DATE_RFC2822),
"Content-Type: text/plain; charset=".$hesklang['ENCODING']
), $message))
{