From 540cf4562746b453c858d79b22bf50a0d3657da7 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 8 Oct 2003 09:22:41 +0000 Subject: add mail header git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1227 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/outmail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/outmail.c b/util/outmail.c index f818d2c6..262c3a67 100644 --- a/util/outmail.c +++ b/util/outmail.c @@ -86,7 +86,7 @@ void doSendBody(int sock, FILE *fp, char *from, char *to, char *subject) { char buf[2048]; n = snprintf(buf, sizeof(buf), - "From: %s\r\n" + "From: %s <%s>\r\n" "To: %s\r\n" "Subject: %s\r\n" "X-Sender: outmail of pttbbs\r\n" @@ -94,7 +94,7 @@ void doSendBody(int sock, FILE *fp, char *from, char *to, char *subject) { "Content-Type: text/plain; charset=\"big5\"\r\n" "Content-Transfer-Encoding: 8bit\r\n" "X-Disclaimer: [" BBSNAME "]對本信內容恕不負責\r\n\r\n", - from, to, subject); + from, from, to, subject); write(sock, buf, n); while(fgets(buf, sizeof(buf), fp)) { -- cgit v1.2.3