Hi all.
I'm using mailx for sending mail through an external SMTP server and it working fine. The only thing I cannot do is to redirect the verbose output of mailx command to a file.
Code:
echo 'message body' | mailx -n -v -S verbose=1 -S smtp=isp.smtp.server -S smtp-auth-user=smtp.user -S smtp-auth-password=smtp.password -a file.to.attach -s "message subject" -r sender@address destination@address
The command above works ok, the mails are sent correctly and I can see on my screen the progress of the process. I tried to redirect it on a log file in various ways but nothing to do.
I tried:
Code:
>myfile
1>myfile
3>myfile
| tee myfile
every time I see the output on the screen and myfile is empty.
What I would to do is to redirect the output from screen to file, I don't wanna get response on the screen, just on the file.
Any ideas.
Thanks
val3xiv