PDA

View Full Version : Fill in form ?


Tmosley
Mar-31-2006, 06:31 AM
Hey, its me again, i put the code below in my contact page of www.tmosleyphotography.smugmug.com (http://www.tmosleyphotography.smugmug.com) and what i would like to do is instead of having the visitors email client send the message is there another way for the information to be sent to me.

<html>
<body>
<form action="MAILTO:troymosley@gmail.com (troymosley@gmail.com)" method="post" enctype="text/plain">
<h3>To contact me, please fill in the fields below and you will recieve and email shortly.</h3>
Name:<br>
<input type="text" name="name"
value="yourname" size="20">
<br>
Mail:<br>
<input type="text" name="E-Mail Address"
value="yourmail" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="yourcomment" size="40">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>

flyingdutchie
Mar-31-2006, 06:47 AM
Hey, its me again, i put the code below in my contact page of www.tmosleyphotography.smugmug.com (http://www.tmosleyphotography.smugmug.com) and what i would like to do is instead of having the visitors email client send the message is there another way for the information to be sent to me.

<html>
<body>
<form action="MAILTO:troymosley@gmail.com (troymosley@gmail.com)" method="post" enctype="text/plain">
<h3>To contact me, please fill in the fields below and you will recieve and email shortly.</h3>
Name:<br>
<input type="text" name="name"
value="yourname" size="20">
<br>
Mail:<br>
<input type="text" name="E-Mail Address"
value="yourmail" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="yourcomment" size="40">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>

This won't work. The form's action attribute should be an http: or https: link to a server that handles e-mail forms. Smugmug does not offer that. You'll have to find or setup another server for that.

Note that using e-mail forms can open you up for spam quite a bit. Spammers get the 'action' attribute from your form and use its value (link) to automatically spam your e-mail form server. Forcing users to use their e-mail client will lessen the chance for spam (since you at least have a return/reply/from-address).

If you don't want your e-mail address visible on your site, look for "syronex" in this thread:
http://www.dgrin.com/showthread.php?t=25368

Tmosley
Mar-31-2006, 06:54 AM
ok i will check that out.