开发者

In PHP, IMAP Functions, what are the functions that download the attached files ? (even if we don't explicitely want to download them)

开发者 https://www.devze.com 2023-01-05 20:03 出处:网络
In PHP, IMAP Functions, what are the functions that download the attached files. I only want to download attached files if needed.开发者_开发问答 I want to save bandwidth, but maybe some functions dow

In PHP, IMAP Functions, what are the functions that download the attached files. I only want to download attached files if needed.开发者_开发问答 I want to save bandwidth, but maybe some functions download them to get their information, or the structure of the email ? If I have an attachment of 2G, I don't want to download it, but want all the same to get the other part of the email (text parts, information about the email structure,...)


See imap_fetchbody and imap_fetchstructure. Messages with attachments are multi-part messages; you can tell imap_fetchbody which part you want to fetch.

0

精彩评论

暂无评论...
验证码 换一张
取 消