Operating System - HP-UX
1833838 Members
1997 Online
110063 Solutions
New Discussion

Re: Attachements with Subject Lines

 
SOLVED
Go to solution
Chris Englert
New Member

Attachements with Subject Lines

I am having difficulty in sending a file as an attachment and including a subject line. uuencode file file | mail email.address does not allow me to add a subject line. I have tried other ways using mailx. Could it be a sendmail setting in the config files? How can I send an attachment and change the subject line.
7 REPLIES 7
S.K. Chan
Honored Contributor

Re: Attachements with Subject Lines

Try this ..

$ uuencode file file | elm -s "subject_here"
S.K. Chan
Honored Contributor

Re: Attachements with Subject Lines

Chris Englert
New Member

Re: Attachements with Subject Lines

The elm option worked, but the uuencoded file embeded into the text of the message. Does this mean an Elm setting is in-correct?
Eric Ladner
Trusted Contributor

Re: Attachements with Subject Lines

Or try

uuencode file file | mailx -s "Subject line" user@foo.com
Chris Englert
New Member

Re: Attachements with Subject Lines

The mailx command is embedding the uuencoded file into the text of the message.
S.K. Chan
Honored Contributor
Solution

Re: Attachements with Subject Lines

Oh .. looks like you need to do a little work to include the MIME headers and base64 encoding to make it work. Check this thread..
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x41950559ff7cd4118fef0090279cd0f9,00.html
Chris Englert
New Member

Re: Attachements with Subject Lines

I figured it out. I had to do the following:

uuencode filename filename | mailx -m -s "subject" emailaddress

Thanks for all your help. Now I need to give my self some points..... (Just kiddin.)

Thanks again.