目前,我是区域方案拟订的新机构,正在学习如何利用R.提供大量在线资源来发送电子邮件。 尽管网上资源丰富,但我还是进行了研究,并通过若干YouTube辅导,但不幸的是,我迄今未能成功。 我很想知道这一问题是否属于我的王储,或者是否与属于公司网络有关。
I have attempted to use packages such as sendmailR
, mailR
, blastula
, and emayili
, but I have not been able to achieve success. Could anyone suggest the most suitable approach for my situation?
我的混淆:
- Is my SMTP configuration correct?
- Am I using the correct port number?
- Does my code contain any errors?
我最接近成功的审判之一:
require(emayili)
require(dplyr)
sender <- "[email protected]"
recipient <- "[email protected]"
email <- envelope() %>%
from(sender) %>%
to(recipient) %>%
subject("Internship_Learning") %>%
text("Pass?")
smtp <- server(host = "123.45.678.901",
port = 465,
username = "[email protected]",
password = "***",
secure = "ssl"
)
smtp(email, verbose = TRUE)
错误信息:
> rlang::last_trace()
<error/purrr_error_rate_excess>
Error in `rate_sleep()`:
! Request failed after 5 attempts.
---
Backtrace:
▆
1. └─emayili (local) smtp(email, verbose = TRUE)
2. └─purrr (local) send_mail(...) at emayili/R/server.R:190:4
3. └─purrr::rate_sleep(rate, quiet = quiet)
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
> rlang::last_trace(drop = FALSE)
<error/purrr_error_rate_excess>
Error in `rate_sleep()`:
! Request failed after 5 attempts.
---
Backtrace:
▆
1. └─emayili (local) smtp(email, verbose = TRUE)
2. └─purrr (local) send_mail(...) at emayili/R/server.R:190:4
3. └─purrr::rate_sleep(rate, quiet = quiet)
4. └─purrr:::stop_rate_excess(rate)
5. └─cli::cli_abort(...)
6. └─rlang::abort(...)
作为参考,我有: