On 21/05/13 15:10, knudhaugmark24(at)gmail(dot)com wrote:> Very strange: After it has worked perfectly for years, now suddenly the mail function does not pass a date in the mails, when forwarding it looks like this> > ---- Original message --------> Subject: New booking from quality-guides.dk> From: quality-guides.dk<knud(at)haugmark(dot)dk>> To: Knud Haugmark<knud(at)haugmark(dot)dk>> CC: knud(at)haugmark(dot)dk> > My webmail returns "Invalid date". The date should be added automatically, right?> whats wrong> > Knud
The date should be handled by the underlying MTA. Outside of PHP altogether.

But usually you can insert a header to override that if it ain't working.

i.e. the mail function has a 'headers' section., so you can add the
correct date to that.

I'd guess you are on 'someone elses' server and they have monkeyed with
the mail subsystem.

--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.

> Very strange: After it has worked perfectly for years, now suddenly> the mail function does not pass a date in the mails, when forwarding> it looks like this> > ---- Original message --------> Subject: New booking from quality-guides.dk> From: quality-guides.dk<knud(at)haugmark(dot)dk>> To: Knud Haugmark<knud(at)haugmark(dot)dk>> CC: knud(at)haugmark(dot)dk> > My webmail returns "Invalid date". The date should be added> automatically, right? whats wrong

Whether it's added or not depends on the MTA you're using and its
configuration. If you're not controlling that, then something got
changed and now it's not. My recommendation is to just add a Date:
header line, in accepted format.