Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

sendmail attachments in rtf

Go to solution
Regular Advisor

sendmail attachments in rtf


we are trying to send attachments via email which are in RTF.

This is part of the script :
echo "Subject: Baan *MAILME_RTF* result"
uuencode $1 MAILME$$.rtf
)| mail $LOGNAME
touch /tmp/mailtouch

It appears however that the recipient does not get a proper formatting.

This is the content of /usr/share/lib/mailx.rc:

set append
set asksub
set dot
set crt=21
set PAGER=/usr/bin/more
set save
set encoding=8bit
set charset=us-ascii

Is this configuration wrong ? Do I need another charset ? Or should I use mailx instead of mail in the first script ?

I don't know much about the uuencode either. Any info is greatly appreciated.
Madhu Sudhan_1
Respected Contributor

Re: sendmail attachments in rtf

uuencode some_file file_name_of_attachment.rtf | sendmail

This works for me.

I have never tried sending attachments using mailx.

Think Positive
Stefan Farrelly
Honored Contributor

Re: sendmail attachments in rtf

We just send attachments in one of 2 ways - depending on what mail system you use;

uuencode | sendmail -v
uuencode | mailx -s"subject"

It always comes out fine as an attachment - using MS Exchange/Outlook.

Im from Palmerston North, New Zealand, but somehow ended up in London...