Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: akehPosted on 2000-10-26 at 02:12:05ID: 4919241
You could do this in a script instead of using metamail:
8bit
8bit
/usr/lib/sendmail abc@email.com << EOF
Subject: Your subject
Content-Type: multipart/mixed; boundary=DocE+STaALJfprDB
Content-Transfer-Encoding:
--DocE+STaALJfprDB
Content-Type: text/plain; charset=us-ascii
Here's a message
--DocE+STaALJfprDB
Content-Type: text/html
Content-Disposition: attachment; filename="report.html"
Content-Transfer-Encoding:
`cat report.html`
--DocE+STaALJfprDB--
EOF
In this example report.html is the file that will be attached. If you want to rename it, just change the "Content-Disposition".