Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Comments from HTML page to e-mail

Status
Not open for further replies.

IronRocket

Technical User
Dec 28, 2005
74
US
I am trying to create a simple page where I have a form (Name, e-mail address, and comment) and want to submit it to my e-mail. When I tried it out, the page would literally time out on me. Just wondering what the problem is. Here is the code below:

<html><head><title>Practice on Forms</title></head>
<body>

<form action="MAILTO:MShrigley01@yahoo.com" method="post" enctype="text/plain">
<h3>This form sends an e-mail to MShrigley01@yahoo.com</h3>
<br />
Name:<br />
<input type="text" name="name" size="20">
<br />
e-mail:<br />
<input type="text" name="mail" size="20">
<br />
Comment:<br />
<input type="text" name="comment" size="40">
<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>

</body>
</html>
 
Does it time out when you submit it or when you try to load it?

If it times out when submitting, do you have an email client configured to send email, such as Outlook or Outlook Express?

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
It times out when I'm submitting...and I don't have an email client to send e-mail. I'm just using a regular yahoo account for regular e-mail. That makes sense now if I don't have anything configured such as Outlook...
 
Exactly, if there's nothing configured to send the email then it doesn't get sent, it probably times out because the browser has nothing to send the email with.

Normally one would use Server side language to send the email because relying on the user's email client can cause problems such as the one you have.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
One more question...would there be code out there where I could get in order to have my own submission page? Just wondering - that would save me a lot of time.
 
Code yes, but without knowing what your web server/host supports well its going to be a little difficult to suggest something specific.

Can you tell us what type of server side language your host supports if any?


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top