diff --git a/tools/wks-util.c b/tools/wks-util.c index 389d4a4da..d78e01d00 100644 --- a/tools/wks-util.c +++ b/tools/wks-util.c @@ -276,7 +276,11 @@ wks_send_mime (mime_maker_t mime) /* Without any option we take a short path. */ if (!opt.use_sendmail && !opt.output) - return mime_maker_make (mime, es_stdout); + { + es_set_binary (es_stdout); + return mime_maker_make (mime, es_stdout); + } + mail = es_fopenmem (0, "w+b"); if (!mail)