By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,679 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,679 IT Pros & Developers. It's quick & easy.

Formmail form "From:" how to change

P: n/a
I'd like the email produced by FormMail to show a specific From: address
rather than po********@server.host.name Googling isn't helping me...
not sure what to look for :-(

--
* John Oliver http://www.john-oliver.net/ *
* California gun owners - protect your rights and join the CRPA today! *
* http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
Jul 24 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
John Oliver wrote:
I'd like the email produced by FormMail to show a specific From: address
rather than po********@server.host.name


There are a number of different scripts going by the name of FormMail, how
you make the modification you want depends rather on which one you use.

It isn't really an HTML authoring issue though.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 24 '05 #2

P: n/a
On Tue, 21 Jun 2005 23:18:38 +0100, David Dorward wrote:
John Oliver wrote:
I'd like the email produced by FormMail to show a specific From: address
rather than po********@server.host.name


There are a number of different scripts going by the name of FormMail, how
you make the modification you want depends rather on which one you use.

It isn't really an HTML authoring issue though.


Err, the parameters for the mail form *are* implemented in HTML via
input type, such as the recipient, subject, etc. I'm looking for a
parameter to pass a given From: address to FormMail, so I can change
where the mail looks like it's from depending on which form is being
submitted.

--
* John Oliver http://www.john-oliver.net/ *
* California gun owners - protect your rights and join the CRPA today! *
* http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
Jul 24 '05 #3

P: n/a
On Wed, 22 Jun 2005, John Oliver wrote:
On Tue, 21 Jun 2005 23:18:38 +0100, David Dorward wrote:
There are a number of different scripts going by the name of
FormMail, how you make the modification you want depends rather on
which one you use.
David makes an important point, which you've completely failed to
address.
It isn't really an HTML authoring issue though.
Err, the parameters for the mail form *are* implemented in HTML via
input type, such as the recipient, subject, etc.


If you don't want the answer, it would be more polite not to ask in
the first place.
I'm looking for a parameter to pass a given From: address to
FormMail, so I can change where the mail looks like it's from
depending on which form is being submitted.


So read the goddamned documentation for the script that you're using.
The HTML specifications throw no light on this, no matter how
resistant you might be to that fact. Sheesh.

Take care that you don't create a spamming gateway and get yourself
(or your server) blacklisted. The script's documentation should
explain this issue. If it doesn't, then "run away". None of this is
an HTML authoring issue as such.
Jul 24 '05 #4

P: n/a
On Wed, 22 Jun 2005 18:00:19 +0100, Alan J. Flavell wrote:
On Wed, 22 Jun 2005, John Oliver wrote:
On Tue, 21 Jun 2005 23:18:38 +0100, David Dorward wrote:
> There are a number of different scripts going by the name of
> FormMail, how you make the modification you want depends rather on
> which one you use.
David makes an important point, which you've completely failed to
address.


I honestly don't see what difference it makes. In the HTML code, I can
specify the recipient and Subject, and that's completely independant of
the exact script the output will be fed to. But since I'm obviously not
an expert:

FormMail Version 1.9s-p7
Copyright 1995-2001 Matt Wright ma***@worldwidemart.com
Created 06/09/95 Last Modified 02/24/02 00:34:00 PST
I'm looking for a parameter to pass a given From: address to
FormMail, so I can change where the mail looks like it's from
depending on which form is being submitted.


So read the goddamned documentation for the script that you're using.
The HTML specifications throw no light on this, no matter how
resistant you might be to that fact. Sheesh.


It looks like you're thinking I'm asking something other than what I'm
asking. The script simply accepts input that's passed to it by a form,
which is implemented in HTML:

<FORM ACTION="http://www.domain.com/cgi-bin/FormMail.pl"
METHOD="post" ENCTYPE=application/x-www-form-urlencoded>
<input type="hidden" name="subject"
value="WEBFORM_QUOTATION">
<input type="hidden" name="recipient"
value="us**@domain.com">
<input type="hidden" name="bgcolor"
value="#ffffff">
<INPUT TYPE="hidden" NAME="required"
VALUE="NAME,COMPANY,EMAIL,PHONE">
<input type="hidden" name="env_report"
value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_US ER_AGENT">

This is in the HTML, *not* the script. I'm hoping to find an "input
type" that will let me specify the From: address on a per-form basis.
If there's no such animal, if that simply can't be done, that's fine,
but I can't help but think that it can... seems like an obvious option.

I'm really sorry that a simple question got you so bent out of shape. I
may not be communicating what it is that I want clearly enough, and if
so I apologize.

--
* John Oliver http://www.john-oliver.net/ *
* California gun owners - protect your rights and join the CRPA today! *
* http://www.crpa.org/ *
* San Diego shooters come to http://shooting.forsandiego.com/ *
Jul 24 '05 #5

P: n/a
John Oliver <jo*****@john-oliver.net> writes:
I honestly don't see what difference it makes. In the HTML code, I can
specify the recipient and Subject, and that's completely independant of
the exact script the output will be fed to.
You're joking, right? The documentation for the script will say what name/
value pairs it expects to receive and is capable of handling. That can and
does vary from script to script - one script might want the recipient's
address to be in a field named "to", another "recipient", another might
expect it to be configured in a file on the server, etc.

*How* to write input elements in a form is an HTML question - *what* input
elements are expected and/or understood by a particular script is a question
for which the only answer can be "read that script's documentation".
But since I'm obviously not
an expert:

FormMail Version 1.9s-p7
Copyright 1995-2001 Matt Wright ma***@worldwidemart.com
Created 06/09/95 Last Modified 02/24/02 00:34:00 PST


That is quite possibly one of the worst scripts available. Even its author
has disowned it. This is not just a matter of coding style or aesthetics -
that script has numerous security holes that will leave your server open to
being hacked into and/or used as a spam relay. It's flat-out broken.

Run, don't walk, to <http://nms-cgi.sf.net> to read more, and to find a more
secure replacement.

sherm--
Jul 24 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.