How to send email with subject and sender name and sender address set ?
man sendmail.opensmtpd - "The sendmail enqueuer is not intended to be used directly to send mail, but rather via a frontend known as a mail user agent." mailx has option -s (add subject). But sendmail has not: sendmail -v -s "111" [email protected] sendmail: illegal option -- s usage: sendmail [-tv] [-f from] [-F name] to ... sendmail.opensmtpd has options -f -F But mailx has not: mailx -v -s "111" -f [email protected] -F myself [email protected] More than one file given with -f Usage: mailx -eiIUdEFntBDNHRVv~ -T FILE -u USER -h hops -r address -s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS -S OPTION users -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
