470,581 Members | 2,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,581 developers. It's quick & easy.

Here is that form2email code:

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.
Jul 19 '05 #1
1 1549
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

"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:eb**************@TK2MSFTNGP10.phx.gbl...
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.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by william c | last post: by
6 posts views Thread by Benny Alexander | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.