Belzar Posted May 11, 2006 Share Posted May 11, 2006 I am having trouble, i was trying to make a simple form that lets me send email to people... here is my code, and i want it to work the same way as this, but somewhere i have a mistake and it wont send the email, can someone please let me knwo where the mistake is made. Thanks a bunch <html><head><title>Send mail</title></head><body><form method="post" action="mailer.asp"> <div align="left">To: <input type="text" name="to" /> <br> From: <input type="text" name="from" /> <br> Subject: <input type="text" name="subject" /> <br> Message:<br /> <textarea name="message" rows="15" cols="40"> </textarea> <br /> <input type="submit" Value="Send Mail" /> </div></form><div align="left"></div><%Set mymail=CreateObject("CDO.Message")mymail.to="response.write(request.form('to'))"mymail.from="response.write(request.form('from'))"mymail.subject="response.write(request.form('subject'))"mymail.textbody="response.write(request.form('message'))"mymail.sendSet mymail=nothing%></body></html> Link to comment Share on other sites More sharing options...
justsomeguy Posted May 11, 2006 Share Posted May 11, 2006 Start by getting rid of the response.write calls, and remove the quotes.mymail.to = request.form('to') Link to comment Share on other sites More sharing options...
Belzar Posted May 11, 2006 Author Share Posted May 11, 2006 Start by getting rid of the response.write calls, and remove the quotes.mymail.to = request.form('to')<{POST_SNAPBACK}> Thanks very much, i'll give that a shot Link to comment Share on other sites More sharing options...
Belzar Posted May 11, 2006 Author Share Posted May 11, 2006 Thanks very much, i'll give that a shot<{POST_SNAPBACK}> great it worked perfectly, thanks again for all the helpThis site is awsome, i have had so much help here from everyone, and its great to be able to get the help you need on code so fast.... thanks again 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