February 25, 200322 yr Hi Guys, I am new to this forum having just joined. Am based in London, England. I have a couple of queries that you guys may be able to help with but will keep them separate! My Filemaker skills are 'Intermediate' I guess, and my CDML skills are pretty much novice at the moment ? but I am trying to learn, fast! My problem (No.1) is this: I have a simple search form and want to receive an email telling me what keyword as been searched. Sounds simple! But it doesn't work. Can anyone help, please? My form coding is as follows: <form action="http://candidesign.macserve.net/FMPro" method="post" name="Custom_Search" target="_self" id="Custom_Search"> <input name="-db" type="hidden" id="-db" value="acts.fp5"> <input name="-format" type="hidden" id="-format" value="/CandiDesign/results_custom.html"> <input name="-error" type="hidden" id="-error" value="/CandiDesign/error.html"> <input name="-lay" type="hidden" id="-lay" value="main"> <input name="-max" type="hidden" id="-max" value="5"> <input name="-sortfield" type="hidden" id="-sortfield" value="type"> <input name="-sortorder" type="hidden" id="-sortorder" value="ascend"> <input name="keyword_calc" type="text" id="keyword_calc" value=""> <input name="-mailto" type="hidden" id="-mailto" value="[email protected]"> <input name="-token" type="hidden" id="-token" value="[FMP-field:keyword_calc]"> <input name="-mailfrom" type="hidden" id="-mailfrom" value="[email protected]"> <input name="-mailsub" type="hidden" id="-mailsub" value="Custom Database Search"> <input name="-mailformat" type="hidden" id="-mailformat" value="[FMP-CurrentToken]"> <input name="-mailhost" type="hidden" id="-mailhost" value="candidesign.macserve.net"> <input name="-find" type="submit" id="-find" value="Go"> </form>
February 25, 200322 yr Hi, are you sure this isn't the mailserver refusing to relay a mail when it hasn't had a username/password logon? There's two ways around this: use from and to addresses registered on the same server, and then forward the mail - this only works if the final address isalways the same. ......or use the SMTPit extension (www.smtpit.com) which is a really useful bit of software. There's a trial version available at their site. regards, jeff
February 25, 200322 yr Author Thanks for your quick reply. Here's the weird thing I discovered: When doing a search using the form, if I hit the submit button it processes the form and displays the results BUT is does not send the email. HOWEVER, if I hit [return] instead of the submit button an error message comes up and the form is NOT processed but an email is send to the address specified in the hidden field, albeit without the search string in the body of the email. Does this make sense? If anyone can actually check this thing out the URL is www.nmp.co.uk. You need to click a 'section on the left and then a 'sub section' to show the database results. From there you can do a custom search and it's on that form I am having the problem. Thanks.
February 26, 200322 yr I have a couple of questions: 1. Is this page being called by a database search; because you have a [FMP-CurrentToken] tag and a [FMP-Field] tag in the Form? 2. If so, does the [FMP-CurrentToken] tag contain the path to the file for the email to send? A couple of observations: 1. Add this line to allow for people pressing "Return" rather than "Go": <input type="hidden" name="-find"> 2. In one version of FM we had a problem with capital letters in the email subject! All the best. Garry
February 26, 200322 yr This line will cause a problem in your Form: <input name="-mailformat2" type="hidden" id="-mailformat2" value="[FMP-ClientUserName]"> "-mailformat2" is not a valid tag. Garry
Create an account or sign in to comment