gpt4 book ai didi

r Blastula curl::curl_fetch_memory(url,handle = h)中的错误:MAIL失败:530

转载 作者:行者123 更新时间:2023-12-03 16:26:21 24 4
gpt4 key购买 nike

NOOB问题与R blastula有关。
我正在尝试使用office365发送带有blastula的电子邮件。
我能够创建凭据文件,但似乎无法发送简单的测试电子邮件:

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)中的错误:MAIL失败:530

我究竟做错了什么 ?

最佳答案

在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"))

关于r Blastula curl::curl_fetch_memory(url,handle = h)中的错误:MAIL失败:530,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59222197/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com