Re: Sendmail attachments


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

Posted by Herb Walters on June 07, 2010 at 06:40:58: Uploaded files: 1

In Reply to: Sendmail attachments posted by Yves Ste-Marie on June 04, 2010 at 11:07:47:

Yves.

I was finally able to get it to work using a shareware app. Turns out very simple if you have the right tools. I am still testing and it appears to be working fine. Probably do another week of testing. I was going to complete my testing before responding to the previous SOS posts I had made. Now you can test with me.

Attached is the link to the program that will perform this task.

Also attached is the command file my IB program creates for SENDMAIL. Looking at the command file you can figure out how to build it. If not let me know and I will give you mine.

Download the executable "base64.exe" into a local folder. I use the same folder for my pdffiles and decoded pdf files.

I set up two variables to handle the task of decoding. The variables contain the "path+pdffile" for the input and the "path+outfile" for the decoded file. In my case I use variables PDFNAM$ and B64NAM$. In you IB program you will need to create B64NAM$ as a text file so you will be able to access the decoded file in your IB program.

Good luck and much success. - Herb

100000 !
101000 ! LOGIC TO SEND PDF FILE VIA OLD SENDMAIL LOGIC
102000 !
103000 ! VARIABLES: PDFNAM$ & B64NAM$ NEED TO BE SET NOW.......
104000 !
105000 BUILD.SENDMAIL.CMD.FILE:
106000 !
107000 BSCF.001:
108000 !
109000 !*** NOW CONVERT THE PDF FILE TO BASE64 ENCODING
110000 !
111000 LCMD$=STRIP(Z9PATH$)+'base64.exe -e '
112000 LCMD$=LCMD$+STRIP(PDFNAM$)+' '+STRIP(B64NAM$)
113000 !
115000 PRINT (0) (LAUNCH=LCMD$)
116000 !




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


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