Re: Looked at documentation, should be fine
| From: | Chris Earle | Date: | Tue, 23 Jul 2002 01:49:46 +0000 |
| Subject: | Re: Looked at documentation, should be fine | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109000@lists.php.net to get a copy of this message | ||
>>$MailToAddress = email@here.com;
No quotes around the e-mail address.
>> $Message .= "\n\n$HTTP_POST_VARS[Footer]";
You left out quotes from "Footer"
"Dean Ouellette" <dean@ouellette.ws> wrote in message
news:00b901c231e6$30300e10$9c89adac@yoda...
> I am running this on php 3.0
> I have read every document I could find on the web, and cant figure out
> why this form submission is not working.
>
> No errors, just does not sent the e-mail to my account
>
> <?php
> If ('GET' == $HTTP_SERVER_VARS['REQUEST_METHOD']) {
>>>>>> $MailToAddress = email@here.com;
> $MailSubject = 'Get Involved List';
> }
> ?>
>
> <?
> If ('POST' == $HTTP_SERVER_VARS['REQUEST_METHOD'])
> if (isset($HTTP_POST_VARS['email'])) {
> $MailFromAddress = $HTTP_POST_VARS['email'];
> } else {
> $MailFromAddress = 'email@here.com';
> }
>
> $Message = $HTTP_POST_VARS['Message'];
> if (isset($HTTP_POST_VARS['Header'])) {
> $Message = $HTTP_POST_VARS['Header'] . "\n\n$Message";
> }
>
> if (isset($HTTP_POST_VARS['Footer'])) {
>>>>> $Message .= "\n\n$HTTP_POST_VARS[Footer]";
> }
>
> mail($MailToAddress, $MailSubject, $Message, $MailFromAddress);
> ?>
>