大虾指点!!ESMTP发送附件的格式是什么??
--> 220 163.com Anti-spam GT for Coremail System (163com[20050206])
HELO 163.com
--> 250 OK
AUTH LOGIN
--> 334 ...
base64的用户名
--> 334 ...
base64的密码
--> 235 Authentication successful
MAIL FROM: <abc@163.com>
--> 250 Mail OK
RCPT TO: <abc@tom.com>
--> 250 Mail OK
DATA
--> 354 End data with <CR><LF>.<CR><LF>
邮件内容,//下面发送附件
\r\n\r\n--#BOUNDARY#--\r\n
Content-Type: application/octet-stream; name=stdafx.h\r\n
Content-Transfer-Encoding: base64\r\n
Content-Disposition: attachment; filename=stdafx.h\r\n\r\n
...............//发送BASE64后的附件内容
以\r\n.\r\n结束
--> 250 Mail OK
QUIT
--> 221 Bye
但是,附件内容总是以信件内容显示出来,而不是附件的形式
大家,帮忙看看那些地方错了??谢谢