Guest lilmikec Posted June 16, 2006 Share Posted June 16, 2006 Hello i need help im trying to make a register page where you fill in text areas and then when you press submite it submites all the info you just enterd to a e-mail adress but i don't know how to make it so it will submit all that info to the e-mail adress Link to comment Share on other sites More sharing options...
vebdeziner Posted June 17, 2006 Share Posted June 17, 2006 hi, first create the html form and give the values for example if u have suppose three things likename : email Id : comments : or u can add many things now give the Id's to each field ex : name="fname", emai id="email", comments="comments"this all shoudl b in html or asp no probs.. then create one asp file with this codeDim name, Title, company, address, city, state1, zip, country, phone, fax, email, comments, NewMailObjname=request.form("name")email=request.form("email")comments=request.form("comments")Set NewMailObj=Server.CreateObject("CDONTS.NewMail")NewMailObj.From = "name@domain.com"NewMailObj.To = "destination@domain.com"NewMailObj.Subject = "New message sent.." NewMailObj.Body = "the sender's name is : " & name & _"<br><br>the title is : " & email & _"<br><br>the company is : " & comments & _NewMailObj.BodyFormat = 0 NewMailObj.MailFormat = 0 NewMailObj.SendSet NewMailObj = nothingResponse.write ""%>asp file finish here....hope this is simple.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now