I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum:
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
command line switch to specify file name containing message body in HTML format
command line switch to specify file name of a binary attachment
command line or input file to specify recipients (both to:, cc: and bcc
command line to specify From: address
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.
Thanks. Tested with it after modifying for AIX uuencode syntax. Didn't work but we are really close.
This particular html document is actually a "Save As" from a Microsoft Word document and it appears that Microsoft puts some additional HTML kung-fu in the header that that doesn't fully comply with the RFC.
Any chance you can give me the correct mime syntax to use a Microsoft Word document for the message body instead of the HTML?
BTW, the correct AIX uuencode syntax for base 64 is:
uuencode -m input_file output_file