Quote:
Originally Posted by RTM
You need to be more specific about your problem:
If you use mailx -s "test"
myself@somedomain.com < /etc/hosts
do you get the email with a subject as 'test'?
If you use mailx -s "test"
myself@somedomain.com < uuencodefile, what happens?
Please explain further on stating "mailx does not attach the file" versus "substituting mailx for mail...attaches the file"
To clarify:
I want to send email from UNIX with an attachment (a csv) and a subject, we are using HP-UX 11.11.
When I use the mailx command from my original post the file I am trying to attach does not appear as an attachment, it is embeddded within the message, and the subject is shown.
When I use mail the file does appear as an attachment in Outlook, but I can only get this to work when I don't specify a subject, as below:
mail me@mydomain < uuencoded file
If I specify a subject the error is returned:
mail: illegal option -- s
usage: mail [+] [-epqr] [-f file]
mail [-dt] persons
For the tests you suggested: Using the first command line I get the word test in the subject and the hosts file in the message area.
The second test has the same result as the first.
Cheers
Brett.