LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 735 users online 165805 members 1559 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
5 online / 50 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

ASPX help
Replies: 1Last Post May 12 6:51am by i who have nothing
Single page for this topic Email Print Favorite
( Link01 )


Time Lord

Patron
Reply
I have to make a website in aspx

How would i make it send content of text box to an e-mail?



-------
Doctor who - Wibbly Wobbly Timey Wimey!
used to show time travel's effects.


6:35 am on May 12, 2008 | Joined Feb. 2006 | 656 Days Active
Join to learn more about Link01 Wales | Straight Male | 29908 Posts | 36272 Points
i who have nothing


Executive

Patron
Reply
create a form like so
Code:

<form method="GET" action="emailthis.asp">
Name <input type="text" name="Name"/>
Message <input type="text" name="Message"/>
<input type="submit" />
</form>

then create "emailthis.asp" and in it the code should should look something like

Code:

<%
Dim name, message
name = Request.QueryString("Name")
message = Request.QueryString("Message")

Set Mail=Server.CreateObject(“CDONTS.NewMail”)
Mail.To=”me@mydomain.com”
Mail.From=”test@whatever.com”
Mail.Subject= name
Mail.Body= message
%>

p.s. i have no idea if that will work since i've never used ASP before.

-------
Want more of me?  Check out my BLOG.
Share your mp3's for free HERE.


6:51 am on May 12, 2008 | Joined Mar. 2008 | 94 Days Active
Join to learn more about i who have nothing Ontario, Canada | Straight Male | 2565 Posts | 3485 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic