sendmailr

sending mail from R (mailR)

孤街浪徒 提交于 2020-01-13 04:42:09
问题 I am trying to send mail from R on a windows 7 (home) machine. I tried the following code send.mail(from = "mymailid@gmail.com", to = c("mymailid@gmail.com"), subject = "Subject of the email", body = "Body of the email", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "myuserid", passwd = "my password", ssl = TRUE), authenticate = TRUE, send = TRUE) I get the following error: Error in ls(envir = envir, all.names = private) : invalid 'envir' argument after that I tried set up

issue using sendemailR [duplicate]

北城余情 提交于 2020-01-02 10:16:38
问题 This question already has answers here : Use sendmailR with Windows (4 answers) Closed 5 years ago . I am trying to use sendemailR package in R but I am getting an error I don't know how to fix. When trying the default parameters: library(sendmailR) from <- "your_email" to <- "your_email" subject <- "Test send email in R" body <- "It works!" mailControl=list(smtpServer="smtp.gmail.com") sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl) I get the error Error in

Email dataframe as table in email body with SendMailR

岁酱吖の 提交于 2019-12-17 18:14:56
问题 I am trying to send a dataframe with SendMailR. I can send it as an attachment with reasonably good formatting. However I would like to send the dataframe in the body of the email. I tried capture.output, print, sprintf but am not even able to get the format close. e.g. I tried the following syntax for (i in 1:nrow(df)){ MSG = c(MSG,rownames(df)[1],as.character(unlist(df[i,])),'\n') } MSG = sprintf('%-10s',MSG) sendmail(from,to,subject,msg = list(MSG,attachment1,attachment2 ... )) In other

Install rJava package on AWS EC2 instance

帅比萌擦擦* 提交于 2019-12-13 20:17:09
问题 I am using R on AWS EC2 instance. I am trying to send a mail using the "mailR" package. I was told that to install the package I should previously install the package "rJava" as "mailR" depends on it. When trying to install "rJava" I get this error: gcc: error: libgomp.spec: No such file or directory After a quick search, I saw a post on this link explaining this: "You have to make sure your GCC has OpenMP support enabled. Make sure you select OpenMP from the optional packages when installing

In R is there any way to send an RMarkdown v2 html file as the body of an email

自闭症网瘾萝莉.ら 提交于 2019-12-12 13:52:48
问题 I have developed a report that makes heavy use of the features in RMarkdown v2, especially the feature to add css classes and id's to html documents in order to have greater control over the output using style sheets. I wish to send these reports in the body of an email. I have been trying to do this using send.mail (mailR). According to their gitgub readme file (https://github.com/rpremraj/mailR/blob/master/README.md) mailR does not currently support resolving inline images encoded using the

What `control` settings are valid to send automated emails from Outlook using `sendmailR`?

五迷三道 提交于 2019-12-11 04:27:50
问题 EDIT: I found a solution. You can find it here. I had to resort to using mailR . I could never get sendmailR to work with the Office 365 services. I am trying to send a single email using library(sendmailR) to later send daily automated emails to about 500 people. Unfortunately, I'm suck in step 1. It is vital that I send these emails from my institution's Outlook account. I have no idea what control settings to use in order to successfully send mails from Outlook. I checked a couple of

Column widths not aligned with table data in pander tables sent from R with sendmailr

喜夏-厌秋 提交于 2019-12-07 04:37:40
问题 I'm working with the 'pander' and 'sendmailr' packages to send a small data frame in the body of an email, rather than as an attachment. I'd like to send it from and to a gmail account. I'm close, but the column headers won't align with the columns themselves in the email body the way they do in Rstudio for example- basically the column headers are too wide to line up with the data columns below them. It seems the problem is the way the dashes and whitespaces are compressed in various email

Column widths not aligned with table data in pander tables sent from R with sendmailr

孤街浪徒 提交于 2019-12-05 11:39:30
I'm working with the 'pander' and 'sendmailr' packages to send a small data frame in the body of an email, rather than as an attachment. I'd like to send it from and to a gmail account. I'm close, but the column headers won't align with the columns themselves in the email body the way they do in Rstudio for example- basically the column headers are too wide to line up with the data columns below them. It seems the problem is the way the dashes and whitespaces are compressed in various email clients (I tried this in gmail, yahoo and hotmail through the web and through the email client that

sending mail from R (mailR)

旧街凉风 提交于 2019-12-04 12:04:09
I am trying to send mail from R on a windows 7 (home) machine. I tried the following code send.mail(from = "mymailid@gmail.com", to = c("mymailid@gmail.com"), subject = "Subject of the email", body = "Body of the email", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "myuserid", passwd = "my password", ssl = TRUE), authenticate = TRUE, send = TRUE) I get the following error: Error in ls(envir = envir, all.names = private) : invalid 'envir' argument after that I tried set up an hmail server (with a local domain name and user account, and smtp set up for smtp.gmail.com:25)

R shiny: how to save input data to the server or access input variables globally?

夙愿已清 提交于 2019-11-30 08:21:03
I am making an application that asks the user a few basic survey questions. When this is done they are asked to provide a numeric input via a slidebar, press continue, then generate a plot, asks the user for input again, updates the plot, etc. The first input should be y1 on the plot, and the second input should be y2 on the plot, ect. But in addition I would like to save the data the user is inputting, so that I can access it in my R script globally, so it can be sent to me using sendmailR or so that it could be downloaded onto my computer as a text file. But I am having trouble figuring out