printer command

Jean-Pierre A. Radley appl at jpr.com
Mon Apr 11 12:42:19 PDT 2011


Enrique Arredondo propounded (on Mon, Apr 11, 2011 at 01:29:01PM -0500):
| Hi,
| 
| I want to send by email a form within input processing using the printer 
| "command" feature, is that possible ?
| 
| I was thinking about doing it like this:
| 
| 
|  	then:  printer "cat | mail -s 'yada' test at test.com"
| 
|          then:  form "letter";end
| 
| Would it work ? Sorry for not testing it but in this case I don't want to 
| torpedo something that will cause my whole system to blow up.

Not quite.  I've got some code like this:

	::printer type "nocodes":
	::printer "|mail -s 'Quote for"<hc{"'"<hm:
	::form "custquote":
	::printer reset:

This will fill in values on the output format called "custquote", and
mail it, hc being a customer's name, and and hm its email address.


-- 
JP


More information about the Filepro-list mailing list