下载前确定电子邮件附件的文件大小 [英] Determine Filesize of Email Attachment Before Downloading

查看:139
本文介绍了下载前确定电子邮件附件的文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Zend Mail库来访问电子邮件并下载电子邮件附件。有没有办法在下载之前确定附件的文件大小?

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?

推荐答案

你不会说你是如何下载的。有很多方法可以收到电子邮件。最简单的三个是:

You don't say how you are 'downloading' it. There are many ways to receive an email. The simplest three are:


  1. SMTP - 不,没有办法,

  2. POP3 - 我认为服务器通常提供总电子邮件的大小,不确定,而且

  3. IMAP - 我真的不记得

答案是在你用来检索(下载)的协议中。如果你不知道,至少你应该知道你正在使用的PHP函数,所以你应该提一下。

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.

这篇关于下载前确定电子邮件附件的文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆