Adding an attachment as an attachment to mailx

I don't want the attachment embedded in the mail. I would like a file attached.

When I do

mailx -s "Report, `date +'%D %r` " -r "Notifications" bob@bob.com < /usr/local/bin/myreport.log> /dev/null

It gets embedded in my email. I want a file attachment. How do I do that?

uuencode filetoattach filetoattach | /usr/bin/mailx -s 'subject' bob@bob.com

Is it possible to change the font when I sent a mail? I would like my emails to be in courier new. If they are not, the report is hard to read.

---------- Post updated at 09:28 AM ---------- Previous update was at 08:59 AM ----------

I can't get this to work. I am in korn shell on solaris.

uuencode /usr/local/era/sbin/myreport.log | mailx -s "My ReportReport, `date +'%D %r` " bob@bob.comnull

This hangs and when i control-c, I get an email, but with no attachment. Just a mail with a suibject and no body.

---------- Post updated at 09:28 AM ---------- Previous update was at 09:28 AM ----------

I can't get this to work. I am in korn shell on solaris.

uuencode /usr/local/era/sbin/myreport.log | mailx -s "My ReportReport, `date +'%D %r` " bob@bob.comnull

This hangs and when i control-c, I get an email, but with no attachment. Just a mail with a suibject and no body.