69,381
社区成员
发帖
与我相关
我的任务
分享
send( client, "登陆代码就不写了 省略掉.." );
send( client, "到这里 DATA" );
/*正确的!*/
char test_str1[]="To:154336958@qq.com\nFrom:webmaster@admin.com\nSubject:test admin\naaaaaaaaaa\n.\n";
bytesSent = send( client, test_str1, strlen(test_str1), 0 );
/*这样就可以把邮件发送过去*/
/*错误的!*/
char test_str1[]="To:154336958@qq.com\nFrom:webmaster@admin.com\nSubject:test admin\naaaaaaaaaa\n";
char test_str2[]="............";
char test_str3[]="\n.\n";
bytesSent = send( client, test_str1, strlen(test_str1), 0 );
bytesSent = send( client, test_str2, strlen(test_str2), 0 );
bytesSent = send( client, test_str3, strlen(test_str3), 0 );