OSDN Git Service

Complete Send mail coding and mail send have some problem.
[tortoisegit/TortoiseGitJp.git] / src / Utils / CSmtp.cpp
index 2a8b8b1..6ab9111 100644 (file)
@@ -590,8 +590,8 @@ int CSmtp::SmtpXYZdigits()
 bool CSmtp::FormatHeader(char* header)\r
 {\r
        int i,s = 0;\r
-       TCHAR szDate[500];\r
-       TCHAR sztTime[500];\r
+       char szDate[500];\r
+       char sztTime[500];\r
        char *to = NULL;\r
        char *cc = NULL;\r
        char *bcc = NULL;\r
@@ -677,8 +677,8 @@ bool CSmtp::FormatHeader(char* header)
        // Date: <SP> <dd> <SP> <mon> <SP> <yy> <SP> <hh> ":" <mm> ":" <ss> <SP> <zone> <CRLF>\r
        SYSTEMTIME st={0};\r
        ::GetSystemTime(&st);\r
-       ::GetDateFormat(MAKELCID(0x0409,SORT_DEFAULT),0,&st,"ddd\',\' dd MMM yyyy",szDate,sizeof(szDate));\r
-       ::GetTimeFormat(MAKELCID(0x0409,SORT_DEFAULT),TIME_FORCE24HOURFORMAT,&st,"HH\':\'mm\':\'ss",sztTime,sizeof(sztTime));\r
+       ::GetDateFormatA(MAKELCID(0x0409,SORT_DEFAULT),0,&st,"ddd\',\' dd MMM yyyy",szDate,sizeof(szDate));\r
+       ::GetTimeFormatA(MAKELCID(0x0409,SORT_DEFAULT),TIME_FORCE24HOURFORMAT,&st,"HH\':\'mm\':\'ss",sztTime,sizeof(sztTime));\r
        sprintf(header,"Date: %s %s\r\n", szDate, sztTime); \r
        \r
        // From: <SP> <sender>  <SP> "<" <sender-email> ">" <CRLF>\r