August 26, 200421 yr I've used the mailto- tag to email our office with the details of the booking each client makes, which works great but I want it to also send an email to the client themselves as well, using the email address they've just entered in a field. If possible the version of the email sent to the client needs to be different to the version we get - is it also possible to have two text files with the email content - or even html files with links??? I see that I can either use a metarefresh (tried this and didn't seem to work, it displays a conf of the details OK but doesn't send any mail) or an inline action... here is what I have written: [FMP-InlineAction: -db=eventbooker.htm, [email protected], -mailBCC=[FMP-Field: Client Email], [email protected], -mailsub=Booking Confirmation, -mailhost=mail.xy.org, -mailformat=mail.txt, -view] [/FMP-InlineAction] but whereabouts do I place it? I haven't used an inline tag before. I put it in the body of the file but the second half of it just appears as text when I navaigate to the page. Finally can the confirmation screen the client sees confirm the details he has just entered? This isn't too important if it's tricky. Thanks for your help it's really appreciated
August 26, 200421 yr Howdy, howdy! I used a two-step method Vaughan described in the posts somewhere in which you take the info on 1 page and then send the e-mail message from the confirmation page. This can be done w/a META REFRESH if you like. Showing the user data that was just enetered is easy... all the field info will be immediately accessible on the -format page that follows the page they entered the info on. You may have to have a <INPUT TYPE="hidden" NAME="-recID" VALUE="[FMP-CurrentRecID]"> but I don't think so. If you want to "remember/store" the recID while you do other things like sending mail, you can enter it into a token... <INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-CurrentRecID]"> and then keep renewing it on each subsequent page... <INPUT TYPE="hidden" NAME="-token" VALUE="[FMP-CurrentToken]"> until you need it... <INPUT TYPE="hidden" NAME="-recID" VALUE="[FMP-CurrentToken]"> If you use META REFRESH, you can put the tokens in the URL intead (check CDML Reference for syntax). Oh... here's a FMFWEBSCHOOL article on confirmation e-mail pages, too... http://www.fmwebschool.com/FAQ.htm#AutomaticEmail --ST
August 27, 200421 yr On a similar note as pdbe, is it possible to put replacement tags inside an inline action? Obviously not straight up, because as he mentions, it doesn't complete the inline action as it should. Is there a workaround for this that doesn't involve 2 pages?
August 27, 200421 yr Big Trouble in Little CDML? I think INLINES are all resolved BEFORE your primary FM action, so I think the answer is "No, you cannot use [FMP-field:fieldname] and similar tags in inlines for the MAIN action", but the inline is its own subset action that will let you access/use/show data from that particular inline. If the inline is a search, you can use its results but not the results of the primary FM action. I have not tried any workarounds, but you might be able to get what you want by using tokens. --ST
August 27, 200421 yr You can use the InlineAction with metatags: [FMP-InlineAction: -db=eventbooker.htm, [email protected], -mailBCC={Field: Client Email}, [email protected], -mailsub=Booking Confirmation, -mailhost=mail.xy.org, -mailformat=mail.txt, -view] [/FMP-InlineAction] This will be replaced by the value in the main search. Good Luck. Garry
Create an account or sign in to comment