关于R囊胚的NOOB问题。我正在尝试使用office365发送带有胚芽的电子邮件。我可以创建一个凭证文件,但似乎无法发送一封简单的测试电子邮件:
require(blastula) ; require(curl)
email <- compose_email(body = "Insert your e-mail body here", footer = "Insert your e-mail footer here")
email %>% smtp_send(from = "me@email.com", to = "someone_else@email.com", credentials = creds_file("C:/Users/me/CREDS_FILE")
)似乎有一个对curl的依赖抛出了错误: curl::curl_fetch_memory(url,handle = h)中的错误:邮件失败: 530
我做错了什么?
发布于 2019-12-16 23:05:46
在create_smtp_creds_key中尝试use_ssl = TRUE。这对我很有效。
email <- compose_email(
body = md(
"Your email message"
))
smtp <- create_smtp_creds_key(
id = "outlook",
user = "youremail@outlook.com",
provider = "office365",
host = "smtp.office365.com",
use_ssl = TRUE)
email %>%
smtp_send(to = to,
from = from,
subject = subject,
credentials = creds_key(id = "outlook"))发布于 2019-12-09 22:52:29
在做了一些搜索之后,我找到了这个似乎相关的question and answer。Hadley建议重新启动R并重新安装{curl}解决了我遇到的问题。
我实际上重新安装了{curl}和{blastula}
install.packages(c('blastula', 'curl'))https://stackoverflow.com/questions/59222197
复制相似问题