473,804 Members | 3,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Formmail.pl assistance

1 New Member
Hello. I'm attempting to write a form for a web page which is using the formmail.pl script. The form works fine and all but it its the script in which i am having troubles. What I would like it to do is to relay a confirmation e-mail with the data to the sender, but also send an identical mail to a specified admin address for collecting the data. The form current sends data to just the admin address. The other issue which I am encountering is how to get the data from all fields in the html page to relay to the body portion of the e-mail. It current sends all the data from the other fields (groupname,emai l ect...) within the body, but the name (realname) is placed within the header of the e-mail.

This is the form portion of the html page

Expand|Select|Wrap|Line Numbers
  1.  
  2. <FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl">
  3.  
  4.  
  5.         <INPUT TYPE="hidden" NAME="recipient" VALUE="anemail@email.com">
  6.         <INPUT TYPE="hidden" NAME="subject" VALUE="Registration">
  7.         <INPUT TYPE="hidden" NAME="env_report" VALUE="REMOTE_HOST,HTTP_USER_AGENT">  
  8.         <INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.awebaddress.com/submit.html">  
  9.         <INPUT TYPE="hidden" NAME="sort" VALUE="order:realname,groupname,phone,email,tickets,time,message">
  10.  
  11.         Your Full Name (As group contact) :  <BR>
  12.  
  13.         <INPUT NAME="realname" TYPE="text" size="30">
  14.           <BR> <BR>
  15.  
  16.         Name of group :  <BR>
  17.  
  18.         <INPUT NAME="groupname" TYPE="text" size="30">
  19.           <BR> <BR>
  20.  
  21.         Phone number :  <BR>
  22.  
  23.         <INPUT NAME="phone" TYPE="text" size="14" maxlength="12">
  24.           <BR> <BR>
  25.  
  26.         Please enter your e-mail address : <BR>
  27.  
  28.         <INPUT NAME="email" TYPE="text" size="30">
  29.            <BR>  <BR>
  30.  
  31.         Number of Tickets required :  <BR>
  32.  
  33.         <INPUT NAME="tickets" TYPE="text" size="5" maxlength="3">
  34.           <BR> <BR>
  35.  
  36.         Time Attending :  <BR>
  37.  
  38.         <SELECT NAME="service">
  39.             <OPTION VALUE="5:30">5:30</option>
  40.             <OPTION VALUE="8:30">8:30</option>
  41.         </SELECT>
  42.  
  43.         <BR> <BR>
  44.  
  45.         Anything else we should know :  <BR> 
  46.  
  47.         <TEXTAREA NAME="message" cols="35" rows="4" wrap="virtual"></TEXTAREA>        
  48.  
  49.         <BR>  <BR>  <BR>
  50.  
  51.         <INPUT TYPE="hidden" NAME="required" VALUE="email,realname,groupname,phone,tickets,service">
  52.  
  53.         <INPUT name="Submit" TYPE="submit" VALUE="Submit">
  54.         <INPUT name="Reset" TYPE="reset" VALUE="Reset">
  55.  
  56.     </FORM>  
  57.  
  58.  
http://www.megaupload.com/?d=KL0BY3XA
That is the link to the formmail.pl version that i am using. Sorry bout the megaupload but it was the only way i could save using major amounts of lines.

Thanks in advance for anyone who is able to help me out on this.
Jul 11 '08 #1
1 1738
numberwhun
3,509 Recognized Expert Moderator Specialist
I would suggest that you learn a little bit of Perl CGI before trying to tackle this. That way, you can then look at the formmail.pl script and try to make the modifications you speak of. If you get stuck, post your code here and we will try and help you get it working.

Regards,

Jeff
Jul 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2806
by: mcp6453 | last post by:
I am trying to use Jack's FormMail script (http://www.dtheatre.com/scripts/formmail). Since I'm brand new at PHP and not very good at HTML, I have an easy question, which I will narrow down. When the email arrives, it has this information: v_firstname: asdf v_lastname: asdf b_email: asdf@bellsouth.net v_phone: asdf v_cellphone: asdf
1
1948
by: Kurt | last post by:
Hello, I have software that allows direct submission of tech support requests. The software connect directly to a formmail script. The problem is that if the user types a '=' or a '&' anywhere in the message, the resulting email is truncated at that spot. It looks like the sub parse_form routine, which splits on '&', is responsible. Then again, submitting the same text from a web form (to the same formmail.pl) does not truncate the...
0
2467
by: Craig | last post by:
I keep getting the error "Error: Bad/No Recipient" when submitting a form using formmail.pl Here is the part of the formmail.pl that you are supposed to alter to suit your needs using fake url and ip addresses: #!/usr/bin/perl ############################################################################ ## # FormMail Version 1.92
4
7769
by: Hmmm... | last post by:
I am setting up a web site for a friend. Her hosting service does not support Sendmail. It is an NT server. They recommend I use Smtp. I have been using something like formmail.pl when I have been helping friends set up their web sites. Does anyone know of a perl script that works like formmail.pl, but uses Smtp. Thanks.
5
4390
by: John Oliver | last post by:
I'd like the email produced by FormMail to show a specific From: address rather than postmaster@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...
2
1506
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. I'm running IIS5 on a Win2k server box and recently ran the Windows Updates (the last time I do that). Anyway, that emailing form doesn't work now on any of the sites I host. Any ideas?
4
3015
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 and have downloaded the free script formmail.php (version 4.1b). Wondered if anyone had experienced the same problem I'm having. I'm submitting a form to formmail.php, but none of the variables seem to be getting recognized. Here is part of the form I'm submitting ... <body onload="document.forms.submit();"> Sending Order ... <form action="formmail.php" method=post
3
2533
by: Geoff Cox | last post by:
Hello, I am using the formmail.cgi script and wonder if it is possible to have the user enter their email address and then have the results sent to this address by formmail.cgi? If yes, how do I do this?! That is, how do I get the user to enter their email address and how is it transferred to formmail.cgi? Cheers,
0
9705
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
9575
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10320
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
10308
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
10073
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...
0
9134
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7609
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
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4288
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

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.