Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » ??-Submitting TAGs with text fields into an Email???
Closed Thread
Old 12-02-2005, 01:50 PM   #1 (permalink)
ATIRAGEPRO's Avatar
 
Monster Techie

Join Date: Mar 2004

Posts: 1,392

ATIRAGEPRO is on a distinguished road

Send a message via AIM to ATIRAGEPRO Send a message via Yahoo to ATIRAGEPRO
Question ??-Submitting TAGs with text fields into an Email???

I use Dreamweaver alot and was wondering; When somone makes those TAGS with all the text fields in them, how would i go about sending the info in those text fields to an email addres (as an email itself) when i press the "Submit" button? How would i get it to automaticaly compose it's own Email from the text fields i made, and send the info to an Email?

It seems logical, (and easy) but has anyone else done this before? Please gimme some coooooooode!! :eek:
__________________

Quote:
Originally posted by bonehelm
WTF ROFLMAO !!!! WTF OMFG LOL !!!! PARDON THE ****KING CAPS IM SO ROFL NOW !!!

I just found out I\'ve been using direct X 8.1 since its out.
He who knows when enough is enough will always have enough... - Lao Tzu
ATIRAGEPRO is offline  
Old 12-02-2005, 03:43 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

ive sent emails using classic ASP. You could sub in the textbox values from a post action.

here's the email asp script that i wrote

Code:
<% Option Explicit %>

<% Dim MyEmail

       Set MyEmail = Server.CreateObject("CDONTS.NewMail")

       MyEmail.From = "tsimpkins@whooha.com"

       MyEmail.To = ""

       MyEmail.Subject = "Update WF Database"

       MyEmail.Body = "Tara has requested for you to update the WF Database."

       MyEmail.Send

       Set MyEmail = Nothing 
       
       response.write "email sent"
       
%>
<input type="button" onclick="window.back()">

office politics is offline  
Old 12-02-2005, 03:45 PM   #3 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

Code:
-------------------File1.asp------------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="File2.asp" method="POST">
Name:<input type="Text" name="Name" maxlength="20">

Company:<input type="Text" name="Company" maxlength="20">

Position:<input type="Text" name="Position" maxlength="20">

Address:<textarea name="Address" rows="3"></textarea>

Phone:<input type="Text" name="Phone" maxlength="20">

<input type="Submit" name="Submit" value="Submit">
</form>
</BODY>
</HTML>
-------------------File2.asp------------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<% Response.Write Request.Form("Name")%> works for 
<% Response.Write Request.Form("Company") %> at address 
<% Response.Write Request.Form("Address") %> as a 
<% Response.Write Request.Form("Position") %>.

</BODY>
</HTML>

Output: 
Jane Doe works for ISSI at address 5609 Kington Pike Knoville, TN as a Web Designer.

office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On