Re: Rookie mail() q's .. can't find answer after RTFM...
| From: | Sean Burlington | Date: | Mon, 30 Dec 2002 00:40:53 +0000 |
| Subject: | Re: Rookie mail() q's .. can't find answer after RTFM... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129617@lists.php.net to get a copy of this message | ||
-<[ Rene Brehmer ]>- wrote:
Q 1: Well, building the form and making the page preview the message is the easy part. But how do I make the page retain the message so that I can 1. actually send the thing after the second submit, and 2. make it fill out the form when user wish to alter message (or there's an error) ???either put the fields you want as hidden fields in the preview page or store them as session variables
Q 2: The manual doesn't really say it that clearly, but do I need to have the content-type field when the message is plain text already?plain text is the default
And should I be adding a Date: field, or does the mail() function figure that out itself?I'm not sure - have you tried it ?
My incoming mail server does not accept messages without a date field, so if I need to add it, I'd really like to know. It also doesn't like messages with more than 1 of each field...(except received-by).just look at an email in your inbox and copy the format of the date field. -- Sean :)