May 9, 200322 yr Newbies I've been reading about sending mail while creating a new record. The way to do it is reported as: <input type="hidden" name="-MailHost" value="YourMailHost"> <input type="hidden" name="-MailTo" value="YourEmailAddress"> <input type="hidden" name="-MailSub" value="New Record Added"> <input type="hidden" name="-MailFormat" value="MailFormat.txt"> MailFormat.txt is a text file in your Web folder which can contain CDML tags, if you like. -- This is great as I've managed to get it right so far then, but what I want to do is have the value of the -MailFormat the same value as what a user inputs into TEXTAREA box on the form in the same page. Is this easily done? Any hints as to how? I think I'm just missing something simple (well hopefully, as I'm still a newbie).
May 9, 200322 yr Author Newbies This is what didn't work: <FORM ACTION="FMPro" METHOD="post"> <INPUT TYPE="hidden" NAME="-DB" VALUE="helpdesk"> <INPUT TYPE="hidden" NAME="-Lay" VALUE="Form"> <INPUT TYPE="hidden" NAME="-format" VALUE="new_reply.htm"> <INPUT TYPE="hidden" NAME="-error" VALUE="new_error.htm" <INPUT TYPE=text NAME=email VALUE=""> <TEXTAREA NAME=problem ROWS=7 COLS=30 WRAP=virtual></TEXTAREA> <INPUT TYPE="hidden" name="-MailTo" value="[email protected]"> <INPUT TYPE="hidden" name="-MailFrom" value="[FMP-Field: email, raw]"> <INPUT TYPE="hidden" name="-MailSub" value="Help Request"> <INPUT TYPE="hidden" name="-MailHost" value="192.168.100.4"> <INPUT TYPE="hidden" name="-MailFormat" value="[FMP-Field: problem, raw]"> <INPUT TYPE="submit" NAME="-New" VALUE="Submit"> The record gets added to the database but not emailed.......
May 10, 200322 yr IMHO that is logical. You cannot send something what doesn't exist. You can program that with some intrapages, JavaScript and/or META refresh tags or Lasso.
May 12, 200322 yr because you "told it" to add a new record <INPUT TYPE="submit" NAME="-New" VALUE="Submit"> theory: 1.add the record 2. pull the record 3. send the record good luck
May 16, 200322 yr What you can do however is split the page using frames so in the top of the frame you create your form with submit and then format=below.htm where you can show the address.
May 16, 200322 yr I'am using this solution. Good luck with it. Automatically Linking to Web Companion Through a META Tag Use the CDML Mailto tags in combination with a redirect page: This method is a bit more involved, but it
Create an account or sign in to comment