如何用smtp发送较大附件
微技术 2007-10-16 11:41:08 程序已经可以发送1M以下的附件,当发送超过1M的附件时出现的提示为:421服务未就绪,关闭传输信道
增加附件的代码如下
SendBufferstr += "------=_NextPart_000_00D6_01C29593.AAB31770" + enter;
SendBufferstr += "Content-Type: application/octet-stream" + enter;
SendBufferstr += " name=\"=" + Charset.ToUpper() + "B" + Base64Encode(filepath.Substring(filepath.LastIndexOf("\\") + 1)) + "=\"" + enter;
SendBufferstr += "Content-Transfer-Encoding: base64" + enter;
SendBufferstr += "Content-Disposition: attachment;" + enter;
SendBufferstr += " filename=\"=" + Charset.ToUpper() + "B" + Base64Encode(filepath.Substring(filepath.LastIndexOf("\\") + 1)) + "=\"" + enter + enter;
SendBufferstr += GetStream(filepath) + enter + enter;
如何解决才能让发送较大的附件?