LiveWire Peer Support Network

Printable Version of Topic "ASPX help"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- ASPX help (http://www.golivewire.com/forums/peer-ibaaas-support-a.html)


-- Posted by Link01 at 6:35 am on May 12, 2008

I have to make a website in aspx

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


-- Posted by i who have nothing at 6:51 am on May 12, 2008

create a form like so
Code:


Name
Message


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.


www.golivewire.com