How to send a mail with an attachment from AIX 5.2 OS?

Has anyone written a script to attach a file when sending an email using the mailx command?

Please search the forum and technical FAQ before posting. You would have found this