Hi,
I'm trying to send a mail with mailx which has to send a fil attached and a message in the body.
To do this I'm using the following line:
(cat <message> ; cat <filename>| uuencode <filename> )| mailx -s"<subject>" <mail address>
But what I end up with is always the same.
I receive my mail (MS Outlook) without the attach.
The mail message is ok BUT the attach is appended to my message like this:
BODY
BODYbegin 666 attach2
M051404-("D%45$%#2 I!5%1!0T@*051404-("D%45$%#2 I!5%1!0T@*0514 M04-("D%45$%#2 I!5%1!0T@*051404-("D%45$%#2 I!5%1!0T@*051404-( ("D%45$%#2 I#
end
The file I'm trying to attach is a plain txt file (log file).
Also, I can't use other mail programs. It has to be mailx
Thanks for any help.
Tijs
I'm trying to send a mail with mailx which has to send a fil attached and a message in the body.
To do this I'm using the following line:
(cat <message> ; cat <filename>| uuencode <filename> )| mailx -s"<subject>" <mail address>
But what I end up with is always the same.
I receive my mail (MS Outlook) without the attach.
The mail message is ok BUT the attach is appended to my message like this:
BODY
BODYbegin 666 attach2
M051404-("D%45$%#2 I!5%1!0T@*051404-("D%45$%#2 I!5%1!0T@*0514 M04-("D%45$%#2 I!5%1!0T@*051404-("D%45$%#2 I!5%1!0T@*051404-( ("D%45$%#2 I#
end
The file I'm trying to attach is a plain txt file (log file).
Also, I can't use other mail programs. It has to be mailx
Thanks for any help.
Tijs