Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing a dorm to an entered email address

Status
Not open for further replies.

uscamper

Technical User
Feb 4, 2002
6
US
Hello

I am trying to create a form that will email the results to
an email that is specified by the user. I can create the easy forms that will email results all to one user, but I want to have field that says "Enter Email Address" and then I want the form to send the results to email entered in that email fiewld.

Help?

Thanks
 
If you're using cgi-scripting try this:

Add this:

$email = $field{'email'} ;

to this part of the script:

&GetFormInput;

Where 'email' is a textfield inyour form, and adjust the sendmail-part of your script to this:

open (MAIL, "|$mail_prog -t");
print MAIL "To: $email\n";
print MAIL "Reply-to: your\@emailadress.com\n";
print MAIL "From: Who-ever\n";
print MAIL "Subject: Whatever\n";

etc...etc....

HTH,

Quasibobo *** Don't eat yellow snow! ***
 
Have a look at the source code on this page:


When submitted, it mails the following:

NAME=
ADDRESS_1=
ADDRESS_2=
ADDRESS_3=
PHONE=
EMAIL=
STUDENT_NUMBER=
ACADEMIC_STATUS=
COURSE=
COURSE_CODE=
GROUNDS=

(with fields completed of course) to examinations@vc.curtin.edu.au

HTH.
 
Is there an HTML solution this? Here is what I have:
Is there just something I can enter in the mailto field that will pick up the answer to the email field?

Please help







<form method=&quot;POST&quot; action=&quot;--WEBBOT-SELF--&quot;>
<!--webbot bot=&quot;SaveResults&quot; startspan S-Email-Format=&quot;HTML/BR&quot;
B-Email-Label-Fields=&quot;FALSE&quot;
S-Builtin-Fields=&quot;Date Time REMOTE_NAME REMOTE_USER HTTP_USER_AGENT&quot;
U-File=&quot;_private/form_results.txt&quot; S-Format S-Email-Address=&quot;NEED THIS TO SEND EMAIL TO WHAT EMAIL THEY ENTER&quot; --><input TYPE=&quot;hidden&quot; NAME=&quot;VTI-GROUP&quot; VALUE=&quot;0&quot;><!--webbot
bot=&quot;SaveResults&quot; endspan --><p> </p>
<p> <dl>
<dd><pre>Name <input type=&quot;text&quot; size=&quot;35&quot; maxlength=&quot;256&quot; name=&quot;Employee_Name&quot;>
SS# <input
type=&quot;text&quot; size=&quot;35&quot; maxlength=&quot;256&quot; name=&quot;Employee_SS_number&quot;>
PTO Dates FROM: <input
type=&quot;text&quot; size=&quot;15&quot; maxlength=&quot;256&quot; name=&quot;Date_begin_PTO&quot;> TO: <input type=&quot;text&quot; size=&quot;19&quot;
maxlength=&quot;256&quot; name=&quot;Date_end_pto&quot;></pre>
</dd>
<dd><pre>Total Hours of PTO requested: <input type=&quot;text&quot; size=&quot;19&quot; maxlength=&quot;256&quot;
name=&quot;Total_PTO_hours_requested&quot;>
Email address of Supervisor <input type=&quot;text&quot; size=&quot;35&quot;
maxlength=&quot;256&quot; name=&quot;email&quot;> </pre>
</dd>
</dl>
<dl>
<dd> </dd>
</dl>
<p><input type=&quot;submit&quot; value=&quot;Submit Comments&quot;> <input type=&quot;reset&quot; value=&quot;Clear Form&quot;></p>
</form>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top