473,748 Members | 4,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Formmail form "From:" how to change

I'd like the email produced by FormMail to show a specific From: address
rather than po********@serv er.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 4387
John Oliver wrote:
I'd like the email produced by FormMail to show a specific From: address
rather than po********@serv er.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********@serv er.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***@worldwide mart.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=applica tion/x-www-form-urlencoded>
<input type="hidden" name="subject"
value="WEBFORM_ QUOTATION">
<input type="hidden" name="recipient "
value="us**@dom ain.com">
<input type="hidden" name="bgcolor"
value="#ffffff" >
<INPUT TYPE="hidden" NAME="required"
VALUE="NAME,COM PANY,EMAIL,PHON E">
<input type="hidden" name="env_repor t"
value="REMOTE_H OST,REMOTE_ADDR ,REMOTE_USER,HT TP_USER_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***@worldwide mart.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
2606
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 have incorporated some VB6 code as well as some Conditional Formatting. The code automatically updates CheckBoxes in the SubForm, depending on exam results, and the Conditional Formatting changes background colours, depending on CheckBox datum. ...
3
3945
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 form in button2 clicked event: textbox1.Text = "Hello";
5
15114
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): Application.Run(new Form2()); Form2.AttachDataSet(ds); Form2.Show();
5
10124
by: Petec | last post by:
Is there a way to prevent a form from getting focus? Thanks! - Pete
6
6223
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 method from the mdichild, I get this error: C:\MyProjects\Visual Studio Projects\Tournament\Forms\frmLogin.cs(69): The name 'test' does not exist in the class or namespace 'Tournament.frmLogin' frmLogin is the mdichild.
5
2465
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 help appreciated. Robert T
2
1789
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 value in the field is changed, including when changed by selecting a new date from the calendar form. The calendar form works as expected - when I select a date the date is placed in the date field of the calling form, but the OnChange event...
1
3489
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 existing exercise or a new one. I want to focus on the new exercise selection for now. When selecting the new exercise a textbox appears where you enter the new exercise name. This is passed and used to create a table and a form from a template...
5
8908
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 string as one of the arguments. As shown below, I have no problems showing the string in the Report() method in a messagebox or console window, but how does one access a memo or label on a form from a static method? I want to throw the strings from...
2
3488
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 change the data displayed in one or more of the other forms, but I cannot find the way to change the Recordsource property of the second form from the first. In a VBA Sub procedure triggered by the Click event of a button on the search form, I...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.