void ReadMailBody(CString& strContent)
{
CString strPath = g_szModulePath +"MailBody.txt";
char tem[1024];
memset(tem,0,1024);
FILE *file = fopen(strPath,"r");
if(file == NULL) return ;
fseek(file, 0, SEEK_END);
long lLength = ftell(file);
fseek(file, 0, SEEK_SET);
long lR = fread(tem, sizeof(char), lLength, file);
fclose(file);
strContent = tem;
strContent.Replace("/n","%0a"); //要是想显示在outlook中要加这句进行换行
}
{
CString strPath = g_szModulePath +"MailBody.txt";
char tem[1024];
memset(tem,0,1024);
FILE *file = fopen(strPath,"r");
if(file == NULL) return ;
fseek(file, 0, SEEK_END);
long lLength = ftell(file);
fseek(file, 0, SEEK_SET);
long lR = fread(tem, sizeof(char), lLength, file);
fclose(file);
strContent = tem;
strContent.Replace("/n","%0a"); //要是想显示在outlook中要加这句进行换行
}