dounieqi6959 2014-08-18 12:27
浏览 172
已采纳

如何通过Gmail API发送电子邮件? 走

I'm trying to send email through the gmail API using Go but I find the documentation quite flawed/ confusing. For once I don't see the receipt field nor the email body.

I don't need to upload anything so I find Simple upload, Multipart upload, Resumable upload methods totally useless. Is there any clear demo (with the data /params required e.g. a cURL payload) ?

As a side note I'm not sure if I'm the only one thinking this but the google apis seem quite the worst out there (in terms of usability) unless there is a library available. The Gmail API seems a good candidate.

  • 写回答

1条回答 默认 最新

  • doulan4371 2014-08-18 12:39
    关注

    You could use directly the Go library for GMail API:
    http://godoc.org/code.google.com/p/google-api-go-client/gmail/v1

    (You have even simpler libraries like SlyMarbo/gmail or njern/gogmail)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?