Jump to content

ASP sending email


Belzar
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...