Operating System - HP-UX
1833786 Members
2789 Online
110063 Solutions
New Discussion

Re: emailing a "file" to exchange server from unix

 
Bob Fohl
Contributor

emailing a "file" to exchange server from unix

I can email a text message from unix to the MS exchange server, but what I would like to do is send a '.pdf' file from unix to exchange.
I have been trying to use elm or sendmail and can't find any documentations on how to attach a file?
Any Ideas?
4 REPLIES 4
Rick Garland
Honored Contributor

Re: emailing a "file" to exchange server from unix

There are various posts regarding e-mail attachments be it the file(s) are ascii or in binary format. Can do a SEARCH to find the previous posts.
Andreas Garbe
Advisor

Re: emailing a "file" to exchange server from unix

Hi,

you can send the attachmend direkt via sendmail or mail.

Scrfile=sendfile.pdf
Sender=andreas.garbe@hp.com
#
echo "Subject: Your PDF File " > $Scrfile
echo "See attached file " >> $Scrfile
#
uuencode $3 file.pdf >> $Scrfile | /usr/lib/sendmail -r$Sender $1 < $Scrf
ile & > /dev/null


uuencode is very old, you can install fetchmail (Free) so you can send attachmend in MIME-Format

/Andreas
Douglas Cromby_1
Valued Contributor

Re: emailing a "file" to exchange server from unix

Variations on the same theme. You can do this with sendmail to send a file:


sendmail abc@xyz.com < filename.txt

or

mailx -s Subject abc@xyz.com < filename.txt


And also:

uuenclode filename.pdf | mailx -m -s "Subject" abc.xyz.com

Rita C Workman
Honored Contributor

Re: emailing a "file" to exchange server from unix

Here is a thread that gives my favorite way to do this...and how others do it also:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html