阅读:1387回复:2
发送邮件是否有字节数的限制?
我将以下内容(从data开始到quit)作为一个字节流来发送但总是不成功
db \'data\', 0dh, 0ah db \'from: %s\', 0dh, 0ah db \'to: %s\', 0dh, 0ah db \'subject: _Attachment!\', 0dh, 0ah db \'MIME-Version:1.0\', 0dh, 0ah db \'Content-type:multipart/mixed;Boundary=boundary\',0dh, 0ah, 0dh, 0ah db \'--bounday\', 0dh, 0ah db \'Content-type:text/plain\', 0dh, 0ah db \'Content-Transfer-Encoding:Bit8\', 0dh, 0ah, 0dh, 0ah db \'Hello\', 0dh, 0ah, 0dh, 0ah db \'--bounday\', 0dh, 0ah db \'Content-type:application/octet-stream;Name=%s\',0dh, 0ah db \'Content-Transfer-Encoding:Base64\',0dh,0ah, 0dh, 0ah, 0 ;经过Base64的附件 db \'--bounday--\', 0dh, 0ah db 0dh, 0ah, \'.\', 0dh, 0ah db \'quit\', 0dh, 0ah, 0 是不是在使用send发送邮件时对每次发送的字节数有一定的限制?? |
|
沙发#
发布于:2005-04-13 15:38
你要跟email server(SMTP)互动才会发送成功,如user name,login password... 等等
|
|
板凳#
发布于:2005-04-13 23:15
不好意思,我把前面的东西略去了,我如果只发送正文,或者较小的附件时都是成功的,可是当附件比较大时(2KB)时就不成功了,而且程序不返回,不知是否对每次发送的字节流有限制??
|
|