Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I have to build a program that using in FJ Powercobol v7 allow me to send for fax and for e-mail the invoices of the clients. Every suggestion is well I accept. The best regards, Massimo from Rome Italy.
Post Follow-up to this messageWe do it in follow way: a) mail: the cobol program creates the invoice in pdf-form, prepares the content of the mail (from, to, body, etc) and starts the mail with the attachment "invoice-pdf-file" via exec b) fax: there is a fax-server (other or the same computer with fax software, f.e. a linux with halifax; this fax-server is for the cobol program a printer; depending of fax software the fax-tel-nomero is integrated in the invoice. Massimo wrote: > Hi, > I have to build a program that using in FJ Powercobol v7 > allow me to send for fax and for e-mail the invoices of the clients. > Every suggestion is well I accept. > The best regards, > Massimo from Rome Italy. -- Vaclav Snajdr
Post Follow-up to this messageMassimo wrote: > I have to build a program that using in FJ Powercobol v7 > allow me to send for fax and for e-mail the invoices of the clients. > For Windows, there is a free program named "sendmail.exe" which is a port of the unix program. It runs on command line so you can execute from inside Fujits u, something like "invoke pow-self "execute" using "sendmail textfile.txt". If you are interested and cannot find the program by search then maybe I can find where I have it (I haven't used it for years but I keep everything). Good lu ck!
Post Follow-up to this messageMassimo wrote: > Hi, > I have to build a program that using in FJ Powercobol v7 > allow me to send for fax and for e-mail the invoices of the clients. > Every suggestion is well I accept. > The best regards, > Massimo from Rome Italy. You've got two distinct issues: 1. Creating the invoice: I'd use PowerForm and send the invoice to a PDF printer (not a real printer, it creates a file in PDF format). 2. Sending the result: Launch an email dohicky and send the created file. We use NSMAIL to send our stuff.
Post Follow-up to this messageMassimo wrote: > I have to build a program that using in FJ Powercobol v7 > allow me to send for fax and for e-mail the invoices of the clients. > Every suggestion is well I accept. It should be easy to build a command line and execute it to do the actual sending. What is to be sent could be a simple text file which is easy to write, but you probably want some graphic form such as .PDF which is both a better company image and is less alterable. I merge data items into a PDF file to create forms. PDF can be just text with markup. I use a graphics editor to draw up the form and output it as a PDF file. In the form I tag the areas I want to merge into with <!%name%> markers that deliminate the width and length of the area. It is relaively easy to process the resulting PDF to change the tags to data (though I actually do it in a C program) which may then be printed, EMailed or FAXed. Note that some graphics editors are not suitable for this work as they do not maintain the tagged fields contiguously. I use tgif which is clunky but usable.
Post Follow-up to this messageThe solution is OK, but as I do to send the document to the e-mail of the client or to the fax? I have the number of fax in the database of the client. How linK the document to the number of fax or e-mail ? regards, Massimo. "Vaclav Snajdr" <snajdr.vaclav@t-online.de> ha scritto nel messaggio news:elbe3u$5qn$01$1@news.t-online.com... > We do it in follow way: > > a) mail: the cobol program creates the invoice in pdf-form, > prepares the content of the mail (from, to, body, etc) > and starts the mail with the attachment "invoice-pdf-file" > via exec > > b) fax: there is a fax-server (other or the same computer with fax > software, f.e. a linux with halifax; > this fax-server is for the cobol program a printer; depending of > fax software the fax-tel-nomero is integrated in the invoice. > > > > Massimo wrote: > > > -- > Vaclav Snajdr
Post Follow-up to this messageThe solution is OK, but as I do to send the document to the e-mail of the client or to the fax? I have the number of fax in the database of the client. How linK the document to the number of fax or e-mail ? regards, Massimo. "Robin Lee" <robinlee@news.com> ha scritto nel messaggio news:5r2dnV3XK6Ur7eTYnZ2dnUVZ_sednZ2d@gi ganews.com... > Massimo wrote: > > For Windows, there is a free program named "sendmail.exe" which is a port > of the unix program. It runs on command line so you can execute from > inside Fujitsu, something like "invoke pow-self "execute" using "sendmail > textfile.txt". > If you are interested and cannot find the program by search then maybe I > can find where I have it (I haven't used it for years but I keep > everything). Good luck!
Post Follow-up to this messageThe solution is OK, but as I do to send the document to the e-mail of the client or to the fax? I have the number of fax in the database of the client. How linK the document to the number of fax or e-mail ? regards, Massimo. "HeyBub" <heybubNOSPAM@gmail.com> ha scritto nel messaggio news:12nj2bo8b3k9m2b@news.supernews.com... > Massimo wrote: > > You've got two distinct issues: > > 1. Creating the invoice: I'd use PowerForm and send the invoice to a PDF > printer (not a real printer, it creates a file in PDF format). > > 2. Sending the result: Launch an email dohicky and send the created file. > We use NSMAIL to send our stuff. >
Post Follow-up to this messageThe solution is OK, but as I do to send the document to the e-mail of the client or to the fax? I have the number of fax in the database of the client. How linK the document to the number of fax or e-mail ? regards, Massimo. "Richard" <riplin@Azonic.co.nz> ha scritto nel messaggio news:1165606928.493325.15400@l12g2000cwl.googlegroups.com... > > Massimo wrote: > > > It should be easy to build a command line and execute it to do the > actual sending. What is to be sent could be a simple text file which > is easy to write, but you probably want some graphic form such as .PDF > which is both a better company image and is less alterable. > > I merge data items into a PDF file to create forms. PDF can be just > text with markup. I use a graphics editor to draw up the form and > output it as a PDF file. In the form I tag the areas I want to merge > into with <!%name%> markers that deliminate the width and length of the > area. > > It is relaively easy to process the resulting PDF to change the tags to > data (though I actually do it in a C program) which may then be > printed, EMailed or FAXed. > > Note that some graphics editors are not suitable for this work as they > do not maintain the tagged fields contiguously. I use tgif which is > clunky but usable. >
Post Follow-up to this messageMassimo wrote (x4): > The solution is OK, but as I do to send the document > to the e-mail of the client or to the fax? > I have the number of fax in the database of the client. > How linK the document to the number of fax or e-mail ? > regards, > Massimo. Just a tip - this is a public forum, so you don't have to post the same thing several different times. :) Even though you're replying to one person in particular, we can all see it. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ ~ / \ / ~ Live from Montgomery, AL! ~ ~ / \/ o ~ ~ ~ / /\ - | ~ daniel@thebelowdomain ~ ~ _____ / \ | ~ http://www.djs-consulting.com ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~ ~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~ ~ h---- r+++ z++++ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ "Who is more irrational? A man who believes in a God he doesn't see, or a man who's offended by a God he doesn't believe in?" - Brad Stine
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.