[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: PDF files on Unix.
The reason I did not mention uuencode is that the fact that it is not MIME-compliant caused problems for us (unless this has changed?). For example if the recipient was using Z-mail, they could not read the attachements. This is something you should be aware of if you plan to send binary files as attachments - some mail readers can handle uuencode, while others cannot.
- Mark
-----Original Message-----
From: Andrew Chan [mailto:Andrew_Chan@MANULIFE.COM]
Sent: Monday, January 31, 2000 4:25 PM
To: SQR-USERS@list.iex.net
Subject: Re: PDF files on Unix.
We have an unix script to do it.
# Send a Mail Message
# ===================
# Called by: hrmail.ksh
# $1 = distribution file (recipients)
# $2 = message type (text / attrpt / attdat / report)
# $3 = message file
# $4 = unique mail id
# $5 = attachment file
# ===========================
# Create Mail Command File
# ===========================
mailcmd=$HRPAR/$4.mail.ini
# Mail To (recipients)
cp $HRDAT/mailto.$1.txt $mailcmd
# Mail From (sender)
cat $HRDAT/mailfrom.hr.txt >> $mailcmd
# Subject
cat $HRDAT/mailsub.$4.txt >> $mailcmd
# Message Text / Attachment / Report
if test $2 = 'text'
then
cat $HRDAT/mailmsg.$3.txt >> $mailcmd
elif test $2 = 'attrpt'
then
cat $HRDAT/mailmsg.$3.txt >> $mailcmd
uuencode $HRRPT/$5 $5 >> $mailcmd
elif test $2 = 'attdat'
then
cat $HRDAT/mailmsg.$3.txt >> $mailcmd
ux2dos $HRDAT/$5 | grep -v
| uuencode $5 >> $mailcmd
elif test $2 = 'report'
then
cat $HRRPT/mail.report.lis >> $mailcmd
cat $HRRPT/$3.lis >> $mailcmd
fi
# ===========================
# Send Mail
# ===========================
sendmail -B8BITMIME -tvba < $mailcmd
##sendmail -B7BIT -tvba < $mailcmd
##sendmail -tvba < $mailcmd
rc=$?
# ===========================
# Remove Mail Command File
# ===========================
rm $mailcmd
return $rc
Regards.
Andrew Chan
HRMS/Enterprise Systems
Manulife Financial
NTM-E2
andrew_chan@manulife.com
Phone# (416) 926-5950
Fax# (416) 926-6087
Pager# (416) 329-3999
Mark Risman <mrisman@PAINEWEBBER.COM> on 01/31/2000 03:59:24 PM
Please respond to sqr-users@list.iex.net
To: SQR-USERS@list.iex.net
cc: (bcc: Andrew Chan/Investments/Manulife)
Subject: Re: PDF files on Unix.
The only way I know of is to "encode" the file (mpack is an example of a
standard encoder); the file then can be embedded in an e-mail. Some encoders
can send mail themselves, as well.
- Mark
-----Original Message-----
From: Gomstyn, Zoya [mailto:zoya_gomstyn@MERCK.COM]
Sent: Monday, January 31, 2000 10:21 AM
To: SQR-USERS@list.iex.net
Subject: PDF files on Unix.
Does anybody know how to send PDF files from Unix to Internet?
I am using "mailx" command, that works fine, except that it
losses (or
replaces) some characters during mailing and then Acrobat gives
me error,
when I am trying to open the mail.
Thank you very much.
Zoya Gomstyn at Merck-Medco.