English 中文(简体)
电子邮件:the R
原标题:Send email by using R

目前,我是区域方案拟订的新机构,正在学习如何利用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?

我的混淆:

  1. Is my SMTP configuration correct?
  2. Am I using the correct port number?
  3. 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(...)

作为参考,我有:

“entergraph

enter image description here

问题回答
host = "123.45.678.901" 

is a fake IP address, the code will not work. You better set a real IP address to make it run.





相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...

热门标签