nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: gamnit: portable services to setup an OpenGL ES 2.0 display
[nit.git]
/
lib
/
sendmail.nit
diff --git
a/lib/sendmail.nit
b/lib/sendmail.nit
index
c8be5f8
..
72b8ea3
100644
(file)
--- a/
lib/sendmail.nit
+++ b/
lib/sendmail.nit
@@
-74,7
+74,7
@@
class Mail
all.add_all cc
all.add_all bcc
all.add_all cc
all.add_all bcc
- var proc = new OProcess("sendmail", all.join(","))
+ var proc = new ProcessWriter("sendmail", all.join(","))
if proc.is_writable then proc.write to_s
proc.close
proc.wait
if proc.is_writable then proc.write to_s
proc.close
proc.wait
@@
-102,7
+102,7
@@
To: {{{to.join(",")}}}\r
CC: {{{cc.join(",")}}}\r
BCC: {{{bcc.join(",")}}}\r
Subject: {{{subject}}}\r
CC: {{{cc.join(",")}}}\r
BCC: {{{bcc.join(",")}}}\r
Subject: {{{subject}}}\r
-{{{header.join("\r\n", ": ")}}}\r
+{{{header.join("\r\n", ": ")}}}\r\n\r
{{{content}}}"""
end
end
{{{content}}}"""
end
end