Re: LPH & LPT Printing


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jon Sacks (167.206.217.227) on October 30, 2003 at 11:29:03:

In Reply to: Re: LPH & LPT Printing posted by jim guerber on October 30, 2003 at 10:38:01:

Tom Try the attached program, RPTMAIL.

Create a "parameter" text file with the following for sendmail (must be in the QDIR):

smtp.server
smtp.servername
sender.email
sender.name
send.to.email
send.to.name
email.subject
{CURRENT.DATE}
{Blank Line}

Put in exactly as I did {CURRENT.DATE} this tells the program to insert the current date/time in the proper format in the file.

Put the following command in the reporter:
PRINTER workfile,dir,T
RUN RPTMAIL,,'workfile,dir,parameter file name,parameter file dir'

This will e-mail the text file via sendmail.

Jon


Follow Ups: