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)

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

    报告相同问题?

    悬赏问题

    • ¥20 反编译一款APP手游,解密出lua脚本。
    • ¥15 改一下,代码,让代码符合要求
    • ¥15 报错问题,只有两个错误,如图片所示,i多次初始化
    • ¥15 matlab runtime 如何收费
    • ¥20 用C语言绘制cs1.6方框透视 出现了点问题 绘制不上去 矩阵数据 和敌人坐标都是正确的
    • ¥15 Tpad api账户 api口令
    • ¥30 ppt进度条制作,vba语言
    • ¥15 生信simpleaffy包下载
    • ¥15 在二层网络中,掩码存在包含关系即可通信
    • ¥15 端口转发器解析失败不知道电脑设置了啥