473,520 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1594
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2359
by: william c | last post by:
I'm trying to use here docs within a switch to output html. The code below works (i.e. prints a Foo1 headline below my tab graphic) but if I take out the comments and use the entire switch statement I get a parse error. I've tried to simplify it down to the bones but can't get it much simpler than this... Can anybody spot my error? thx,
6
1805
by: Benny Alexander | last post by:
Hi, All my Form2Email ASP scripts are not working. Its very sad that I tried few scripts and none are working, even my own. What could be the problem. Do I need an SMTP for that? Os Is there any problem with my ISP. I am sad to add more that I am an ASP programmer for years. Please do not misunderstand me, Its really itching my life.
3
1986
by: smorrey | last post by:
Howdy folks, I recently purchased a book on C++ MUD creation and it features alot of nifty tidbits. The book is MUD GAME PROGRAMMING by Ron Penton Publisher: Premier Press Anyways of particular interest and what drew me to the book was the crossplatform threading library. But the problem is it appears to be broken at a single line of...
5
11116
by: garfy | last post by:
Hi i get this error in validation Line 22 column 6: document type does not allow element "title" here. <title>Seo Web Design Los Angeles - Web Design And Search Engine Optimization L But the title is inside the head so why I am getting this?
2
18877
by: samyuktha takkellapati | last post by:
create or replace trigger emp_trigger after update or delete on employee for each row begin if updating then insert into empupdate(empno,ename,job,mgr,sysdate,sal,comm,deptno) values(:old.empno,:old.ename,:old.job,:old.mgr,:old.hiredate,:old.sal,:old.comm,:old.deptno); elsif deleting then insert into...
2
12013
by: bhavanirayala | last post by:
Hi All, I am getting the following warning while running the perl script Warning is: Quantifier follows nothing before HERE mark in regex m/* << HERE /
1
1594
by: leighahh | last post by:
Hi everyone i was wondering if there was a way to turn this code that is css into HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <!-- YOUR WEBSITE TITLE --> <title>
2
3363
by: dibblm | last post by:
I'll start this hopefully simple and add code where needed or requested. Im using a combobox that bound to a DataSet. The Dataset retreives it's values from SQL. I can retreive the values fine. However only displaying (1) Column. Which is fine. Here's where it gets complicated for me. The dataset has 2 other columns that get filled....
0
7204
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5742
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3282
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1646
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
506
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.