Questions tagged [sendmailr]

Questions pertaining to using an SMTP client for sending email with R

The sendmailR package contains a simple client which provides a portable solution for sending email, including attachements, from within . Full documentation at CRAN

84 questions
55
votes
8 answers

How to send an email with attachment from R in windows

I have a scheduled an R script running from a windows machine. After it finishes, I wish this script to automatically send an email with some log file attached. Using shell() with some other scripts may be possible, but I was wondering if there…
ahala
  • 551
  • 1
  • 5
  • 3
22
votes
1 answer

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

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…
WetlabStudent
  • 2,364
  • 3
  • 22
  • 38
20
votes
4 answers

Use sendmailR with Windows

I'm trying to run sendmailR on Windows with the following code: ## Not run: from <- "" # sprintf("", Sys.info()[4]) to <- "" subject <- "Hello from R" body <- list("It works!",…
Tal Galili
  • 22,529
  • 40
  • 118
  • 179
10
votes
3 answers

Email dataframe as table in email body with SendMailR

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…
hjw
  • 1,173
  • 1
  • 9
  • 23
6
votes
2 answers

mailR: how to send rmarkdown documents as body in email?

How to send rmarkdown generated documents as a body in an email, using R? I have successfully tried knitr with mailR, but when instead generating the html-report with the (new) rmarkdown-package it fails. library(mailR) send.mail( from =…
reinholdsson
  • 809
  • 7
  • 18
5
votes
1 answer

Embed gvis object (image stored as HTML) as inline in mailR - R

I am Working on googleVis Chart and wanted to Embed gvis object (image stored as HTML) as inline using mailR package. I have the below code to send mail from my sever - library(mailR) send.mail(from = "admin_xxx@apsmail.xx.xxx.xx", to =…
5
votes
1 answer

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

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…
Eric
  • 167
  • 1
  • 7
4
votes
1 answer

Create persistent multi-line string

I would like to assign a multi-line string to a variable in R so that I can call the variable later. When I try paste("line 1", "line 2", sep = "\n") I get "line 1\nline 2". When I try cat("line 1", "line 2", sep = "\n"), I get the desired output,…
Jubbles
  • 3,722
  • 8
  • 29
  • 46
4
votes
1 answer

Extracting Zip+CSV file from attachment w/ Image in Body of Email

I receive daily emails where there is an attachment containing 1 zip file containing 1 csv file. In the body of my email, there is an image that is being recognized as another attachment I am pretty sure. The below script works when there is only…
nak5120
  • 3,410
  • 3
  • 23
  • 62
4
votes
0 answers

mailR not connecting to gmail server - R

I want to send an automated email using mailR. I cannot connect to the gmail server. I have allowed access to less secure apps on my gmail account, following suggestions by other users. This did not solve the issue. Here is my code (password and…
squarsh
  • 41
  • 1
4
votes
5 answers

sending mail from R (mailR)

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…
Prodipta Ghosh
  • 479
  • 4
  • 11
4
votes
0 answers

error when using sendmailR to send email

I want to use sendmailR send email via smtp.exmail.qq.com server,I looked at the sample to do it ,but failed,how can I work it out? sendmail( from="***@companyName.com", to="***@companyName.com", body="Hallo", …
Lawes
  • 549
  • 1
  • 7
  • 13
4
votes
3 answers

sendmailR - Attached more than one recipient

I have successfully managed to implement the sendmailR function to send one message to one recipient. Do you know if it is possible to send that same message to multiple recipients within the function? A form of CC'ing? If not I think the only way…
Methexis
  • 2,269
  • 4
  • 21
  • 32
3
votes
0 answers

Possible mailR/rJava Filepath Issue?

In the past, I have used the mailR package with no issues on both Mac and Windows. Ever since the last R/RStudio update, mailR and rJava will no longer work. I can install both packages just fine. But, I cannot load them with the library() command.…
3
votes
0 answers

Java error when using mailR package

I'm trying to set up the mailR package to send me email notifications when my scripts have finished running. So far, I've installed and loaded the package, installed the latest version of Java that matches my architecture and ran the following…
Tim Hargreaves
  • 242
  • 3
  • 10
1
2 3 4 5 6