Problem here is the subject of the email gets truncated after the first space, i.e emails are receving with subject "This" instead of "This is subject message"
I call mailx from script, from command line if I use double quote I the get the subject as such, however when I use it via scripting, It's not
My script has following statement
I've tested the code (Debian Linux + bash) I posted and worked.
I don't know what could be the problem...
Try "echo $1" inside the script to see what's its value...
One more thing. As matrixmadhan, my mailx does not accept "-R"...