I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command line switch to specify file name of a binary attachment
3. command line or input file to specify recipients (both to:, cc: and bcc
4. command line to specify From: address
5. command line to specify mail subject (subject text may include spaces)
I've tried every combination redirecting and piping uuencode and mail/mailx you could ever come up with with no luck.
The stumbling block is the HTML message body. Attaching a binary file to a text message body is a no brainer but I have to have the message body in HTML because we are using formatted tables.
Any help would be greatly appreciated.
Thanks.