【发布时间】:2017-10-10 17:33:24
【问题描述】:
在尝试将文件附加到字母时,我正在努力定义正确的 mime 类型。我正在使用 png-image 测试该功能,但最终我需要附加一个 pdf。
library(gmailr)
test_email <- mime(
To = "mymail@yandex.ru",
From = sender_account,
Subject = "this is just a gmailr test",
body = "Can you hear me now?") %>%
attach_file(file = "health.png", type = "image/png")
send_message(test_email)
得到这样的东西而不是附加文件:
Can you hear me now? --29c4c91341434848f627ac9c696d9ed9--
我做错了什么?
【问题讨论】:
-
好吧,即使
mime::guess_type()也无法解决问题