FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » no date header in mail()
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
no date header in mail() [message #181552] Tue, 21 May 2013 14:10 Go to next message
knudhaugmark24 is currently offline  knudhaugmark24
Messages: 2
Registered: May 2013
Karma: 0
Junior Member
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
Re: no date header in mail() [message #181553 is a reply to message #181552] Tue, 21 May 2013 14:52 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
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.
Re: no date header in mail() [message #181554 is a reply to message #181552] Tue, 21 May 2013 14:49 Go to previous messageGo to next message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma: 0
Senior Member
On Tue, 21 May 2013 07:10:41 -0700 (PDT), 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

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.

--
Crowds want to beat, journalists deserve to be beaten. Where lies
the problem?
-- Lars Syrstad
Re: no date header in mail() [message #181556 is a reply to message #181552] Tue, 21 May 2013 16:57 Go to previous messageGo to next message
knudhaugmark24 is currently offline  knudhaugmark24
Messages: 2
Registered: May 2013
Karma: 0
Junior Member
Thanx boys, I will check with provider, one.com, and see waht they can do
Re: no date header in mail() [message #181559 is a reply to message #181556] Tue, 21 May 2013 19:42 Go to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
On 21/05/13 18:57, knudhaugmark24(at)gmail(dot)com wrote:
> Thanx boys, I will check with provider, one.com, and see waht they can do
>

I feel sorry for you, I really hope you will find a more honest
provider, I know many how have been cheated economically by them.


--

//Aho
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with quotes in javascript output
Next Topic: insert PDF table in database
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 04:05:18 GMT 2024

Total time taken to generate the page: 0.35100 seconds