I am trying to create a line to send mail using postfix but the terminal just hangs up:mail $MAILRECEIPIENT -s ${MAILSUBJECT}. - ${CURRENTDATETIME} < $TMPFILE;What's wrong with this syntax ?UPDATEThis actually sends an email but without the attachment and I also get an error:mail: Invalid header:echo ${CURRENTDATETIME} | mail -s ${MAILSUBJECT} -a $TMPFILE $MAILRECEIPIENT;
Mail Command Hangs Up
postfix