Open ghost opened 9 years ago
Just kidding. Only appending >/dev/null 2>&1 makes it actually quiet.
root@host:~# /usr/local/scripts/mailsend -q -f me@example.com -smtp smtp.example.com -t me@example.com -sub Test -M "This should be quiet" Message: This should be quiet Mime type: text/plain Disposition: inline Encoding type: none
root@host:~# /usr/local/scripts/mailsend -f me@example.com -smtp smtp.example.com -t me@example.com -sub Test -M "This should be quiet" >/dev/null Message: This should be quiet Mime type: text/plain Disposition: inline Encoding type: none
root@host:~# /usr/local/scripts/mailsend -f me@example.com -smtp smtp.example.com -t me@example.com -sub Test -M "This should be quiet" 2>/dev/null Mail sent successfully
The -q switch is not functioning with the v1.17b15 Debian package. Appending >/dev/null works just fine, but figured I'd give a heads up.