srsly78 wrote: » First test if you can send mail normally from the system (echo whatever | mail joe@bloggs.com). Then do the web page bit.
doylefe wrote: » If you don't code and have no backend, there's not much you can do with static HTML. Whats supposed to happen when they submit the form? Maybe you could use a service like https://formspree.io or create a form with survey monkey and embed it into your page.
counterpointaud wrote: » You can't send an email directly from a contact form on the client, you will need to send the data to a server somewhere first. Preferably on your own domain. If you don't have a server system to manage that you may be able to find a third-party service that you can send the form data to. Those type of services will typically give you the contact form markup to paste into your document. If you do go this route, do some research/due diligence on the service, as you are now passing data (incl. probably email addresses) from your site visitors to a third-party.
igCorcaigh wrote: » For point 2: try changing the method attribute of the form to POST. That should pass the parameters via the form body rather than the query string in the address bar.
doylefe wrote: » Put a "required" attribute on the email input. Will work on the majority of modern browsers. Maybe set up a new generic mailbox if people seeing your email address is an issue.
<form method="POST" action="https://formspree.io/YOUREMAILHERE"> <input name="email" placeholder="Your email" type="email"> <br><br> <textarea name="message" placeholder="Your message"></textarea> <button type="submit">Send</button> </form>
<h2>Contact Us</h2> <form action="https://www.SnapHost.com/captcha/send.aspx" id="ContactUsCaptchaWebForm" method="post" onsubmit="return ValidateForm(this);" target="_top"> <input name="skip_WhereToSend" type="hidden" value="your@email.com" /> <input name="skip_SnapHostID" type="hidden" value="9EQ3XLFCTLGN" /> <input name="skip_WhereToReturn" type="hidden" value="http://www.YourWebsiteAddress.com/ThankYouPage.htm" /> <input name="skip_Subject" type="hidden" value="Contact Us Form" /> <input name="skip_ShowUsersIp" type="hidden" value="1" /> <input name="skip_SendCopyToUser" type="hidden" value="1" /> <script type="text/javascript"> function ValidateForm(frm) { if (frm.Name.value == "") {alert('Name is required.');frm.Name.focus();return false;} if (frm.FromEmailAddress.value == "") {alert('Email address is required.');frm.FromEmailAddress.focus();return false;} if (frm.FromEmailAddress.value.indexOf("@) < 1 || frm.FromEmailAddress.value.indexOf(.") < 1) {alert('Please enter a valid email address.');frm.FromEmailAddress.focus();return false;} if (frm.Comments.value == "") {alert('Please enter comments or questions.');frm.Comments.focus();return false;} if (frm.skip_CaptchaCode.value == "") {alert('Enter web form code.');frm.skip_CaptchaCode.focus();return false;} return true; } function ReloadCaptchaImage(captchaImageId) { var obj = document.getElementById(captchaImageId); var src = '' + obj.src; obj.src = ''; var date = new Date(); var pos = src.indexOf('&rad='); if (pos >= 0) { src = src.substr(0, pos); } obj.src = src + '&rad=' + date.getTime(); return false; } </script> <table border="0" cellpadding="5" cellspacing="0" width="600"> <tr> <td><b>Name*:</b></td> <td><input name="Name" type="text" maxlength="60" style="width:350px;" /></td> </tr><tr> <td><b>Phone number:</b></td> <td><input name="PhoneNumber" type="text" maxlength="43" style="width:350px;" /></td> </tr><tr> <td><b>Email address*:</b></td> <td><input name="FromEmailAddress" type="text" maxlength="60" style="width:350px;" /></td> </tr><tr> <td><b>Comments and questions*:</b></td> <td><textarea name="Comments" rows="7" cols="40" style="width:350px;"></textarea></td> </tr><tr> <td colspan="2" align="center"> <br /> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2" style="padding-bottom:18px;"> <!-- Please check our ProCaptcha service which is ad-free:https://www.SnapHost.com/captcha/ProCaptchaOverview.aspx --> <a href="http://www.snaphost.com/captcha/ReadyForms/SignUpForm.aspx" alt="registration form online" title="registration form online"> registration form online</a></td></tr> <tr valign="top"><td> <i>Enter web form code*:</i> <input name="skip_CaptchaCode" type="text" style="width:80px;" maxlength="6" /> </td><td> <a href="https://www.snaphost.com/captcha/ReadyForms/ContactUsForm.aspx"><img id="CaptchaImage" alt="Contact Us form" title="HTML code for Contact Us form" style="margin-left:20px;" src="https://www.SnapHost.com/captcha/CaptchaImage.aspx?id=9EQ3XLFCTLGN&ImgType=2" /></a><br /> <a href="#" onclick="return ReloadCaptchaImage('CaptchaImage');"><span style="font-size:12px;">reload image</span></a> </td></tr> </table> <br /> * - required fields. <input name="skip_Submit" type="submit" value="Submit" /> </td></tr> </table><br /> </form>
tricky D wrote: » This bit is the bit that captures the IP... <input name="skip_ShowUsersIp" type="hidden" value="1" /> However that only works in the second form as it uses a different 'sending program'; the form action bit, so you can't just grab a bit from one form method and pop it into another and expect it to work.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.