Samba PDF Email

Robert Meyer meyer_rm at yahoo.com
Thu Sep 11 23:41:29 EDT 2003


Just a thought... You could install Hylafax on Linux and use one of the Hylafax
clients on windows.  I've done this before.  You might have to mangle the
windows end to fill in the information from the driver but I think that one of
the client programs is written in python, you might be able to modify it to
accept the destination information from the business system as command line
arguments.

Just a thought...

Cheers!

Bob
--- Justin Bennett <justin.bennett at dynabrade.com> wrote:
> yeah thats a posibility but I was hoping to do this for Purchase Orders 
> and such generated from our Buisiness System (oracle reports). We fax 
> POs internationally, easier and cheaper to email them. Wouldn't work to 
> well for that. May have to settle for emailing it to the users, and then 
> they could forward the email.
> 
> 
> Brett Hamann wrote:
> 
> >----- Original Message -----
> >From: "Justin Bennett" <justin.bennett at dynabrade.com>
> >To: <nflug at nflug.org>
> >Sent: Thursday, September 11, 2003 10:39 AM
> >Subject: Samba PDF Email
> >
> >
> >  
> >
> >>I'm creating a samba printer that will email a PDF, could be usefull for
> >>emailing POs ect. I have the script and printer setup, I modified the
> >>script to create a PDF from samba, and had it attach to an email and
> >>send, rather than save it in a users home directory. It works fine when
> >>I hard code the to address in the script. I was wondering how to pass an
> >>email address to samba from windows, so I can then hand it to my script.
> >>I assume I may need a custom print driver?
> >>
> >>My Setup:
> >>[pdfmail]
> >>   path = /tmp
> >>   printable = yes
> >>   guest ok = yes
> >>   print command = /usr/bin/emailpdf %s %u
> >>   lpq command =
> >>   lprm command =
> >>
> >>emailpdf:
> >>#!/bin/sh
> >>DATE=`date +%b%d-%H%M%S`
> >>
> >>
> >>OUTDIR=/tmp
> >>/usr/bin/ps2pdf13 /tmp/$1 $OUTDIR/$2-$DATE.pdf
> >>chmod 660 $OUTDIR/$2-$DATE.pdf
> >>sendEmail -m "Emailed PDF" -f xxx at dynabrade.com -t xxx at dynabrade.com -u
> >>"Emailed PDF" -a $OUTDIR/$2-$DATE.pdf
> >>rm $1
> >>rm $OUTDIR/$2-$DATE.pdf
> >>
> >>Justin Bennett
> >>Network Administrator
> >>RHCE (Redhat Certified Linux Engineer)
> >>Dynabrade, Inc.
> >>8989 Sheridan Dr.
> >>Clarence, NY 14031
> >>
> >>
> >>
> >>
> >>---------------------------------------------
> >>This message has been scanned for viruses and
> >>dangerous content by MailScanner, and is
> >>believed to be clean.
> >>---------------------------------------------
> >>
> >>    
> >>
> >Maybe have the user put the recipient's email in the document, then you
> >could use awk to pull out "Email:user". I did this to pull out a word
> >documents title before I fax it.
> >
> >HTH
> >Brett
> >
> >
> >
> >
> >--------------------------------------------- 
> >This message has been scanned for viruses and
> >dangerous content by MailScanner, and is
> >believed to be clean.  
> >---------------------------------------------
> >
> >  
> >
> 
> -- 
> Justin Bennett
> Network Administrator
> RHCE (Redhat Certified Linux Engineer)
> Dynabrade, Inc.
> 8989 Sheridan Dr.
> Clarence, NY 14031
>  
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the nflug mailing list