473,390 Members | 1,131 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

Formmail form "From:" how to change

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
5 4363
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terry | last post by:
I have cerated a Form, ExamsFrm, which is used to input details of exams taken at several Centres. It dosplays details from StudentTbl and has a SubForm which displays details from ExamsTble. I...
3
by: Omar Llanos | last post by:
I have Form1 and Form2 (which is inherited from Form1), and I created a button in Form2 that will fill up a textbox in Form1. What code would do that? I tried the simplest way: //from child...
5
by: Dan | last post by:
Hi. I'm trying to launch a second form from code in a first, but it doesn't seem to working. Originally I tried to write the code as follows (Form2 has a public method called AttachDataSet): ...
5
by: Petec | last post by:
Is there a way to prevent a form from getting focus? Thanks! - Pete
6
by: Claus Holm | last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather than making the menuitems public, I'd go for a public method in the parent form to do the change, but when I call the...
5
by: twick10 | last post by:
Hi, I am trying to execute a control method on an open form (not with focus) from a modal dialog box. I want to increment the node selected from the dialog when a certain key is pressed. Any...
2
by: planetthoughtful | last post by:
Hi All, I have a calendar form that updates a date field on the form from which it was called. I have code in the OnChange event of the date field that I would like performed whenever the date...
1
by: Mexar | last post by:
My programming grammar might be a little off but I have a pretty good idea of what I need to convey. I am making an Access database with a form that pops up and lets you choose to select an...
5
by: Jon E. Scott | last post by:
I'm a little confused with "static" methods and how to access other unstatic methods. I'm a little new to C#. I'm testing a callback routine within a DLL and the callback function returns a...
2
by: David Haskins | last post by:
I have a fairly complex interface screen (form) that is comprised of several subforms that perform different, but related activities. I am designing a search/filter form that should be able to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.