dtuct88226 2016-01-22 03:54
浏览 75

Gmail API - 使用php客户端库发送大型附件

I am using AngularJs front-end and PHP backend, utilizing the Gmail api client, to send and view emails. I am able to successfully send emails with attachments using the method shown here. But I am getting an "Error 413: Request Entity Too Large" when the message size is over 5MB.

I have looked at a question that is identical to mine. The answer provided allows files to be uploaded to Google Drive. I am unsure on how to refer to the Google Drive files in associated email messages.

According to documentation using Google Drive files as attachments is only necessary after the total size of the email exceeds 35MB.

The document also states that emails with large attachments can be sent using the media /upload option. But I am not able to find a php client method that would allow me to do so.

Summing up, I have 2 questions. How is the media /upload method used to send emails with large attachments. How can files on Google Drive be referred to in email messages?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号