1
I would like to use sendmail
to send an e-mail from my backup software on Kubuntu Linux. However the software does not allow entering a full command line (only command name and arguments pattern separately). This is why I can not pass the mail body to sendmail
using standard input.
Is there a way to call sendmail
without standard input usage? E.g. passing the message body by command line parameter (or even passing no body at all)?
You can probably get stdin to "work" this way: by spawning a shell with the redirections inside the argument:
sh -c 'sendmail -oi -t < file.eml'
– glenn jackman – 2015-10-11T11:22:13.377