how to send jpg as body

Hi,

I ftp the .jpg file from windows to unix machine, now i need to send the jpg file as body to (not as attachment) outlook, can anyone send the sample code for this?

You cannot do that and get the jpg back again. You have to mime encode any file that has record length greater than 78(?) bytes, as I remember.

Otherwise mail transport will either misinterpet things so you cannot view the file or data will be lost.

uuencode my.jpg my.jpg | /usr/bin/mailx -s 'a jpg file'  me@myaddress.com