On Sun, Nov 14, 2010 at 04:23:15AM +0100, Benny Pedersen wrote: > On fre 12 nov 2010 19:08:57 CET, mouss wrote > >> the "general" syntax is >> sendmail -f sender rcpt1 rcpt2 ... < messagefile
The correct syntax is: sendmail -i -f "$sender" -- "$rcpt1" "$rcpt2" ... < "$file" The "-i" and the "--" after the last option (-f sender) are not optional in robust scripts. -- Viktor.