Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Sending invoices fax and e-mail with FJ Powercobol
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.



Report this thread to moderator Post Follow-up to this message
Old Post
Massimo
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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

Report this thread to moderator Post Follow-up to this message
Old Post
Vaclav Snajdr
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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 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!

Report this thread to moderator Post Follow-up to this message
Old Post
Robin Lee
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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.


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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



Report this thread to moderator Post Follow-up to this message
Old Post
Massimo
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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!



Report this thread to moderator Post Follow-up to this message
Old Post
Massimo
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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.
>



Report this thread to moderator Post Follow-up to this message
Old Post
Massimo
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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.
>



Report this thread to moderator Post Follow-up to this message
Old Post
Massimo
12-11-06 11:56 PM


Re: Sending invoices fax and e-mail with FJ Powercobol
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

Report this thread to moderator Post Follow-up to this message
Old Post
LX-i
12-11-06 11:56 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:13 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.