如何使用PHP正确发送附件与Google App Engine?特别是PDF

时间:2014-08-24 23:13:55

标签: php google-app-engine email pdf

对于我的生活,我似乎无法弄清楚这一点:

https://developers.google.com/appengine/docs/php/mail/#PHP_Sending_mail_with_attachments

当您向下滚动到有关添加附件的部分时,它要求

' image.jpg','图片数据',$ image_content_id

图像数据'它们是什么意思? &安培; ' Image_content_id'?

任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:1)

最好查看源代码以获取更多信息。

   * @param string $filename Filename of the attachment.
   * @param mixed $data File data of the attachment.
   * @param string $content_id Optional Content-ID header value of the
   * attachment. Must be enclosed by angle brackets (<>).

您可以将Image_content_id留空。

以下是其最新版本的网址:

https://chromium.googlesource.com/external/googleappengine/python/+/f72f48321d631feac45cdbbb6cb82587fe2f6f1d/php/sdk/google/appengine/api/mail/BaseMessage.php