Newbies wavegirl Posted May 9, 2003 Newbies Posted May 9, 2003 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).
Newbies wavegirl Posted May 9, 2003 Author Newbies Posted May 9, 2003 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.......
Anatoli Posted May 10, 2003 Posted May 10, 2003 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.
Leb i Sol Posted May 12, 2003 Posted May 12, 2003 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
Machiavelli Posted May 16, 2003 Posted May 16, 2003 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.
Jukkie Posted May 16, 2003 Posted May 16, 2003 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
Recommended Posts
This topic is 7931 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now