How to send some text in email along with the contents of the file, don't want to send file as an attachment? is it possible via mailx command?
mailx -s "Email log file" abc@mail.com <$log_file;
$log_file contents gets emailed but below doesn't work
echo "Comment: log contains last month report" | mailx -s "Email log file" abc@mail.com < $log_file
Needed output in email:
Comment: Log contains last month report
<All contents of $LOG_FILE as text>