Stu*_*981 0 gmail r gmail-api gmail-addons
我最近学会了如何使用gmailr在R中发送电子邮件.
gmailr::send_message(mime(from = "email1@gmail.com",
to = "email2@gmail.com",
subject = "The Great Subject",
body = "Hello buddy. How are you?"))
Run Code Online (Sandbox Code Playgroud)
现在,假设我有帐号email2@gmail.com,我想得到我收到的这条消息的正文.我怎么能在R?感谢您的帮助和建议.
根据chinsoon12的建议,我收到了电子邮件的正文
A <- messages("The Great Subject",
include_spam_trash = FALSE)
message(id = A[[1]]$"messages"[[1]]$"id")$snippet
Run Code Online (Sandbox Code Playgroud)
我希望它对你有所帮助.