How do i change the subject when emails are sent.

  • Thread starter Thread starter lr_thompson
  • Start date Start date
L

lr_thompson

When an email is generated from a form, i currently get the subject -
'WWW Form Submission'

Is there an easy way i can change it to: 'www.website.com Enquiry'

I have been searching the newsgroups but can't seem to find anything?

Help would be much appreciated or if someone could point me in the
right direction.

Regards

Lewis
 
What is being used to process the form data on the server? If
FrontPage extensions, then right click anywhere in the form and choose
form properties.
Click Options button, then the email tab.
In the section "E-mail message header", clear the checkbox "Form field
name" and type in the required subject.

If not using the extensions, check with the form handler's author.
 
Hi Ronx thanks for the reply,

i was told by my host to use these settings:-

send to other: Custom ISAPI, NSAPI, CGI or ASP scipt

select options: POST TO & /cgi/formmail

select Advanced

redirect: to confirmation & recipient: email address

when clicking options i get a different set of options from say if i
have 'Send To: file or email address' selected.

Any ideas, i've looked everywhere and can't find no info on it?

Regards

Lewis
 
Since you are not using the FP Form Handler, you will need to contact your web host for support with
their provide CGI Formmail script or search the internet for Formmail.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Right click the form and choose Form Properties.
Select: Send to other: Custom ISAPI, NSAPI, CGI or ASP script
Click Options button
Action: /cgi/formmail
Method: POST
Encoding type: leave blank
Click OK
Click Advanced button
Click Add...
Name: redirect
Value: path to your confirmation page
Click OK
Click Add
Name: recipient
Value: your email address (whoever receives the data)
Click OK
Click Add
Name: subject
Value: Whatever you want the subject to be
Click OK
Click OK
Click OK

Note that the subject may not work as expected - this depends on the
version of formmail being used. The versions I have used use a form
field named subject, but will give a default value if the field does
not exist, or is blank.
Also note that the field names are cAsE sensitive.
 
Yes, there is a way. Right click in your form and choose form
properties. Click Send to. In the email address you should have typed
your email you want it to go to.

Next click the options button
Once you have clicked that, you should see 3 tabs. Click on the tab
that says Email Results.

Towards the bottom is says E-Mail header Subject Line.
This is where you can choose what you want. If you leave that blank,
then the header would say the general Form Results.

If you want the subject line of the email message to contain the
results of one of the fields from your form, next to subject line,
select form field name, check box, and then type the name of the field
in the Subject line box.

I hope this makes sense. If not, let me know.
 
If you're using "Formmail" from "Matt's Script Archive"
(http://www.scriptarchive.com) usually that script uses hidden fields such
as

<input type="hidden" name="subject" value="Enquiry from Website">.

You could try putting the above in your form.
However, it would be advisable to check the documentation of the script for
the specifics, or with your host if they provided it for your use. If it is
specifically the "formmail.pl" script that you're using try this page for
solution on configuring the form & script:

http://www.scriptarchive.com/readme/formmail.html#form_config
 
Back
Top