sendmail
commandrequire: sendmail_is_available
# Send this mail using the `sendmail` command
#
# require: `sendmail_is_available`
fun send: Bool
do
assert sendmail_is_available
# All recipients
var all = new Array[String]
all.add_all to
all.add_all cc
all.add_all bcc
var proc = new ProcessWriter("sendmail", all.join(","))
if proc.is_writable then proc.write to_s
proc.close
proc.wait
var status = proc.status
return status == 0
end
lib/sendmail/sendmail.nit:64,2--83,4