【发布时间】:2016-09-30 07:17:03
【问题描述】:
我关注了Google's information,通过 SendGrid 从 App Engine 发送了一封电子邮件。使用Java library for SendGrid 和提供的示例代码可以正常工作:
import packageName.Sendgrid;
Sendgrid mail = new Sendgrid("<sendgrid_username>","<sendgrid_password>");
mail.setTo("foo@bar.com")
.setFrom("me@bar.com")
.setSubject("Subject goes here")
.setText("Hello World!")
mail.send();
但现在我需要附加一个文件。如何才能做到这一点?我在sendgrid-google-java library 中找不到addAttachment-function 或类似的东西。
【问题讨论】:
标签: java google-app-engine sendgrid