Here is that form2email code:

B

Benny Alexander

Whats the problem. I never getting the form data delivered to my my mail
box.

Regards,
Benny


1. Sendform.asp

<% @language="VBSCRIPT" %>

<%
Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.To = request.form ("recipient")
objMail.Subject = request.form ("name")
objMail.From = request.form ("email")
objMail.Body = request.form ("message")
objMail.Send
Set objMail = Nothing


Response.Redirect "thanks.htm"


2. form.asp

<form action="sendmail.asp" method="POST">
<input type="hidden" name="recipient" size="25"
value="benny@(mydomainnamehere).com">
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td>Name </td>
<td><input type="text" name="name" size="25"></td>
</tr>
<tr>
<td>Email </td>
<td><input type="text" name="email" size="25"></td>
</tr>
<tr>
<td>Message </td>
<td><textarea rows="7" name="message" cols="30"></textarea></td>
</tr>
</table>
<input type="submit" value="Submit"> <input type="reset" value="Reset">
</form>

%>

3. a thanks.htm file.
 
S

Stuart Palmer

Find out from your HOST if they support CDONTs, some don't, some do, some
think it's a security risk so have an alternative.

Does this code work on your development machine? Looks o.k to me on initial
look.

Stu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,477
Members
44,898
Latest member
BlairH7607

Latest Threads

Top