I'm using Zend Mail library to access email and download email attachments. Is there a way to determine the attachment's filesize before downloading?
2条回答 默认 最新
- dqxyh48864 2010-07-11 02:40关注
You don't say how you are 'downloading' it. There are many ways to receive an email. The simplest three are:
- SMTP - No, there is no way,
- POP3 - I think servers typically provide size of the total email, not sure, and
- IMAP - I really don't recall
The answer is in the protocol you are using to retrieve (download). If you don't know that, at least you should know the PHP function you're using, so you should mention that.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报