Home > Archive > Cobol > December 2006 > Sending invoices fax and e-mail with FJ Powercobol
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sending invoices fax and e-mail with FJ Powercobol
|
|
| Massimo 2006-12-11, 6:56 pm |
| 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 2006-12-11, 6:56 pm |
| 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:
> 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
| |
| Robin Lee 2006-12-11, 6:56 pm |
| Massimo 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 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!
| |
| HeyBub 2006-12-11, 6:56 pm |
| 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.
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.
| |
| Richard 2006-12-11, 6:56 pm |
|
Massimo 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.
| |
| Massimo 2006-12-11, 6:56 pm |
| 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.
"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
| |
| Massimo 2006-12-11, 6:56 pm |
| 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.
"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!
| |
| Massimo 2006-12-11, 6:56 pm |
| 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.
"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.
>
| |
| Massimo 2006-12-11, 6:56 pm |
| 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.
"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.
>
| |
|
| Massimo 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
| |
| Richard 2006-12-11, 6:56 pm |
|
Massimo wrote:
> 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 ?
You need to find software that will accept a command line to do what
you want, or alternately find a service that your program can directly
interact with.
For example you can access an SMTP server to send EMail by sending
messages to port 25 at the appropriate address. However you may be
better using a command line program such as BMail or SendEMail which
you should be able to find with Google search. I used Blat with
success when I used to do it from Windows. To use these you should
write your email as a file, eg I123456.PDF, and then construct an
appropriate command line such as:
BLAT message.txt -to accounts@customer.com -attach I123456.PDF
and execute this with CALL 'system' or whatever your Cobol requires to
do to execute a command line.
For FAX do it much the same way.
| |
| Richard 2006-12-11, 6:56 pm |
|
Massimo wrote:
> 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 ?
You need to find software that will accept a command line to do what
you want, or alternately find a service that your program can directly
interact with.
For example you can access an SMTP server to send EMail by sending
messages to port 25 at the appropriate address. However you may be
better using a command line program such as BMail or SendEMail which
you should be able to find with Google search. I used Blat with
success when I used to do it from Windows. To use these you should
write your email as a file, eg I123456.PDF, and then construct an
appropriate command line such as:
BLAT message.txt -to accounts@customer.com -attach I123456.PDF
and execute this with CALL 'system' or whatever your Cobol requires to
do to execute a command line.
For FAX do it much the same way.
| |
| HeyBub 2006-12-11, 6:56 pm |
| Massimo wrote:
> The solution is OK, but as I do to send the document
> to the e-mail of the client or to the fax?
Both.
You send the document to a PDF generator and the result of that operation (a
file) gets attached to the email you send to the client.
|
|
|
|
|