Attached HTML page to Email

Greeting all,
Not sure anyone tested to send out email with HTML page as attachment from Shell Script ?

I know if I use uuencode file.html approach, the mail receive in attachment is empty.

So I guess uuencode cannot be use for the html code. Appreciate if anyone can share the code to resolve this issue.

Thanks

---------- Post updated at 04:28 AM ---------- Previous update was at 02:15 AM ----------

ok, manage to do it using the uuencode myfile.html myfile.html |mail -s .... -r ... my.email.id
thank you!