命令交互方式发送邮件,PC上测试,outlook接收邮件,附件没有内容。
outlook接收该邮件主题 正文 附件名字都是对的
就是附件大小显示不对
而且附件下载下来字节数为0
里面没有内容
求助
命令行打印如下:
connectionSend URL:socket://192.168.0.100:25
ResponseString 220 ESMTP 易邮邮件服务器 5.2.2004.02.18 SMTP Service Ready
send EHLO 192.168.0.100
ResponseString 250-AUTH=LOGIN
250 AUTH LOGIN
send MAIL FROM:z@z.com
ResponseString 250 OK
send RCPT TO:z@z.com
ResponseString 250 OK
send DATA
ResponseString 354 send the mail data, end with .
send Date: 4 JAN 2008 01:24:40
From: z@z.com
To: z@z.com
Subject: 哈哈+hehe
Content-type: multipart/mixed;
boundary="#BOUNDARY#"
--#BOUNDARY#
Content-Type: text/plain;
charset=gb2312
Content-Transfer-Encoding: base64
use6xytoYWhh
--#BOUNDARY#
Content-Type: application/octet-stream;
name=z.txt
Content-Disposition: attachment;
filename=zhenghao.txt
Content-Transfer-Encoding: base64
77u/5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI5ZOI5ZOI5ZOIK2hlaGUr5ZOI
--#BOUNDARY#
.
ResponseString 250
send QUIT
ResponseString 221 SMTP SERVICE CLOSED 补充 我是做邮件客户端的 这是用邮件协议交互 发送邮件 如果真的只是附件没有,就是你的BOUNDARY有问题。
最后一个 "--#BOUNDARY#" 改为 "--#BOUNDARY#--" 应该就行了
但我看你贴的东西空行很多,这样肯定不行的。空行在Mime中是用来做分隔的。还有许多必要的东西没有
页:
[1]