Developer Support »

How do you use the form without having an email subject line?  (See more user questions)


Are you talking about an email address or a subject line?? Seems you are
talking about both.

The email subject doesn't go in the form, it goes in the script. Can you
clarify please?

Are you saying the script won't work if there is no visitor (From:) email
address present? That's down to your server setup, nothing to do with the

To make it work with your setup, you can hard-code a From: email address
into the script, which means it will always have a From: address. This
address is normally the one entered by the visitor, but hard-coding it means
it is always there and you don't need an email input on your form.

Locate this code in the script:

$headers = "From: {$from_name} <{$_REQUEST['email']}>";

Change it to this:

$headers = "From: Bob's Survey <[email protected]>";

Change the wording and email address above, to suit.

Please clarify the business about the subject line.

Best wishes.

Charles Sweeney
The world's easiest feedback script!

----- Original Message -----
Sent: Monday, March 16, 2009 8:31 AM
Subject: FormToEmail script

> Comments: How do you use the form without having an email subject line. It
> seems that unless I have a request for email and an email address in the
> text box when when submitting, the email never arrives (although it does
> say it got sent). As soon as I add the email subject back into the form
> the email goes through and I get it in my inbox. I want to create a survey
> form without the request for an email address.
> Any help is appreciated.
> Other than that, this seems to be quite the terrific form script and I
> have only tried the free version so far.
> Thank you.