Most likely, whatever is run by ContactUsForm isn't actually trying to send email; if it was you'd be getting an exception thrown because you can't send email from arbitrary user-entered email addresses. What do your app.yaml and the script run for ContactUsForm look like?
On Dec 16, 12:20 pm, Nora <[email protected]> wrote: > Hello, > I am trying to add a contact us form to my website that will run on > GAE server. My code simply checks the email address correctness of > the person contacting me, and sends the email to me. > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" > "http://www.w3.org/TR/xhtml4/DTD/xhtml4-frameset.dtd"> > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=utf-8"> > > <title>Contact us</title> > <script language="JavaScript"> > <!-- > //checks if the email is in a correct format > > function processForm() { > > var emailnotvalid = ""; > var errors = ""; > var errormsg = "Please fill in the 'Your Email' field: \n > \n"; > var emailValue = document.ContactUsForm.email.value; > > if (emailValue == ""){ > errors = true; > errormsg += " -- Your e-mail address \n"; > }else{ > var checkemail = emailValue.match(/^\w+[\.\w...@\w+[\.\w > +]+\.+\w+$/); > if (checkemail == null){ > errors = true; > errormsg += " -- Please enter a valid e-mail > address \n"; > } > } > > if (errors){ > alert(errormsg); > return false; > }else{ > alert("Great! The form was filled out correctly!"); > //document.ContactUsForm.submit(); > } > } > > //--> > </script> > </head> > > <body> > > <form name = "ContactUsForm" method="get" > action="#?"> > > <input type="hidden" name="recipient" > value="[email protected]"> > <input type="hidden" name="required" > value="email"> > <input type="hidden" name="sort" > value="alphabetic"> > <input type="hidden" name="env_report" > value="REMOTE_HOST,HTTP_USER_AGENT"> > > <table width="100%" border="0" cellspacing="0" > cellpadding="0"> > <tr> > <td width="15"> </td> > <td><table width="98%" border="0" > cellspacing="0" cellpadding="0"> > <tr> > <td> > <table width="100%" border="0" > cellspacing="0" cellpadding="0"> > <tr> > <td height="25"> </td> > <td> </td> > <td> </td> > </tr> > > <tr> > <td height="25" >Message Subject </td> > <td><div align="center">:</div></td> > <td><input name="subject" type="text" ></ > td> > </tr> > <tr> > <td height="25" >Your Email </td> > <td><div align="center">:</div></td> > <td><input name="email" type="text" ></ > td> > </tr> > > <tr> > <td height="25" valign="top" >Please > enter your message</td> > <td valign="top"><div align="center">:</ > div></td> > <td><textarea name="message" cols="70" > rows="20" ></textarea></td> > </tr> > <tr> > <td height="50" valign="top"> </td> > <td valign="top"> </td> > <td> > <table width="100%" border="0" > cellspacing="0" cellpadding="0"> > > <tr> > <td width="142"><input > type="submit" value="Send" onClick="processForm(); " ></td> > <td><input type="reset" > value="Reset Form" onclick="this.form.reset(); return false;"></td> > </tr> > </table> > </td> > </tr> > </table> > </td></tr> > </table> > </td> > </tr></table></td> > </tr></table> > </form> > > </body> > </html> > > For some reason, the email is not sent though the posting gives me > http-1.0 200 signal(successful post) > > Any idea where is the problem? > > Thank you very much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
