mailx script to do multiple emails

I am looking for a script that I can use with mailx to do the following:

  1. Grab usernames from a flat file (one at a time)

  2. Attach a file to the email and mail out.

Thanks.

Cubefeed

Nobody will answer this post unless you state the file format of the attachment, the Operating System and version, and confirm that this is nothing to do with commerical spam.

Understood. In this day and age one has to be careful, right?

OS=Solaris10
Sendmail V8.13.6

This is actually a second part of a script that sends backup tarballs every day to people in our group. The first part of the script does an rsync of the developers directory and creates a tarball. The script should email those tarballs to the developers to keep a copy for themselves.

Any suggestions will be appreciated.

Thanks

CubeFeed

If you can use "sendmail" directly rather than "mailx" it becomes easier.
The site search of this site for "sendmail attachment uuencode" should help.