printer command
Jean-Pierre A. Radley
appl at jpr.com
Tue Apr 12 11:10:43 PDT 2011
Dennis Malen propounded (on Mon, Apr 11, 2011 at 06:08:31PM -0400):
| ----- Original Message ----- From: "Jean-Pierre A. Radley"
|
| >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
| That is easier than using the system command. I like the use of the
| single quotes. Really works great.
|
| How would you change the code if you were doing an attachment?
|
You cannot send attachments with SCO Unix's /bin/mail, at least not with
a simple command line.
Use "mutt" instead, which has a '-a' flag for adding attachments.
--
JP
More information about the Filepro-list
mailing list