I am sending mail to a list of users, using the mailx
utility:
mailx -s "$SUBJECT" "$TO" < $FILE
It is working fine with valid emails, but I am getting a dead.letter
issue when I try to send mail like adffadf
, i.e., the string is not a valid email,
I want this dead.letter
to not be occurring even for users having anything for email ID, e.g., abc@gmail.com, abc@def.cc, adffdfs
mailx
. Does the man page for your version ofmailx
offer theDEAD
environment variable? – Chris Davies Aug 04 '15 at 16:30and nosave Normally, when you abort a message with two interrupt characters (usually control-C), mail copies the partial letter to the file dead.letter in your home directory. Setting the binary option nosave prevents this.
can you please help on this
– Girdhar Singh Rathore Aug 05 '15 at 11:26