"Invalid or incomplete multibyte.." using cat textfile | mailx recipient@domain
Hi all,
I'm preparing a bash script that can send email using mailx and postfix installed on my linux box to some people that are on a list in a text file.
The core of this script is
cat text_of_mail | mailx -s "Subject Mail" recipient@domain
I wrote by hand the text of the mail but when i try to use the script the linux box says:
"Invalid or incomplete multibyte or wide character [...] message not sent"
I tried to remove special chars like è, ì and so on and even #,- and @ but it's still not working. Any ideas?
Thanks!!
|