Ik heb om een microfocus COBOL - opgewekt ascii rapport in pdf-bestand en voeg het in een e-mail gekickt uit binnen de volgende cgi script:
if [ "$ EMAIL" \u003d "Y"], vandaar
sed -e '/ ^ H_ / s / / / g' <$REPFILE >$ REPFILE2
print "
E-mail te sturen naar $ EMAILID
"
(
echo "To: $ EMAILID"
echo "Onderwerp: OK - Tekening $ DRWID Issue $ DRWISS Certified White Verslag
Content-Type: multipart / mixed;
boundary \u003d \ "------------ F31625F689894DCE7A7A828F \ "
Dit is een multi-part bericht in MIME-formaat.
-------------- F31625F689894DCE7A7A828F
Content-Type: text / plain; charset \u003d us-ascii
Content-Transfer-Encoding: 7bit "
echo "
Witte Verslag van Certified gegevens opgenomen in:
Tekening ID \u003d $ DRWID
Kwestie \u003d $ DRWISS
ChgAnal \u003d $ CHG "
if [ "$ CHG" \u003d "Y"], vandaar
echo "ChgAnalIss \u003d $ CHGISS"
fi
echo "Manuf Doc \u003d $ MFG"
echo "-------------- F31625F689894DCE7A7A828F
Content-Type: text / plain; charset \u003d us-ascii
Content-Transfer-Encoding: 7bit
"
cat $ REPFILE2
echo "-------------- F31625F689894DCE7A7A828F - "
) | Mailx-t
-------------------------------------------------- ----------
I can use postprint to go from ascii--->ps, and then I can use Acrobat's distill to convert the ps--->pdf, maar hoe kan ik vervolgens de resulterende pdf in een e-mail?
Ik heb gelezen alle draden hier en ik zie niet een antwoord.
Please help. Wat ben ik bij? Er is geen mogelijkheid om mailx aan hechten, en de ondersteuning van RFC822 was geen hulp. We moeten gebruik mailx.
Bedankt.