You are here: Re: "unknown date" via mail() « PHP Programming Language « IT news, forums, messages
Re: "unknown date" via mail()

Posted by Schraalhans Keukenmeester on 05/22/07 17:46

At Tue, 22 May 2007 10:24:25 -0700, Akhenaten let his monkeys type:

> Probably something simple but all email I send via mail() is received
> with an "unknown date" stamp. Am I missing something in my header?
> Code as follows:
>
> *****************************
> <?php
> $headers = <<<END
> From: this@email.com
> Date: $date
> X-Mailer: PHP v$phpversion
> MIME-Version: 1.0
> Content-Type: multipart/related; boundary="$boundary"
> END;
>
> $date = date("D M j G:i:s T Y");
> $Email = 'me@myemail.net';
> $subject = 'Test Email';
> $message = 'test message';
> mail($Email,$subject,$message,$headers);
> ********************************

Set $date before you create the $headers. $date is empty in your example.
Sh.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация