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

90 questions
57
votes
9 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
  • 571
  • 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,556
  • 3
  • 25
  • 39
21
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
  • 24,605
  • 44
  • 129
  • 187
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,279
  • 1
  • 11
  • 25
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
  • 859
  • 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
  • 177
  • 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
  • 4,450
  • 8
  • 35
  • 47
4
votes
0 answers

r Blastula smtp_server Gmail Login denied

I am running into an issue with blastula email and SMTP Gmail. When I run the following code on my local RStudio, it runs perfectly well and the email is sent. library(blastula) # To store my credentials with pwd in a file create_smtp_creds_file( …
ML_Enthousiast
  • 1,147
  • 1
  • 15
  • 39
4
votes
0 answers

how to eliminate error got from emayili package in R

R error in 'emayili' package. # Create a message object.. # Add addresses for the sender and recipient. # Add a subject. # Add a text body. to_send<- envelope(to = "xxx@gmail.com", from = "xxx@gmail.com", subject = "ALERT", …
tyk
  • 45
  • 3
4
votes
3 answers

Sending a mail from R using mailR package getting the error

I am trying to sending a mail from R using mailR package but getting the error. My code : subject <- "Montly Report" today<-Sys.Date() fileName <- sprintf('./DailyReports/LaunchDaily_%s.html', format(today, format = "%d-%m-%y")) body <- "Testing…
sai saran
  • 737
  • 9
  • 32
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
  • 4,089
  • 4
  • 35
  • 94
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
  • 509
  • 4
  • 14
4
votes
1 answer

Sending Email from R - when Scheduled script Fails in Windows

I Have a Rscript file (Main_Script.R) which runs as a sheduled job in windows Task Scheduler every 30 Mins.Inside the Main_Script.R - i have around 13 scripts that runs every 30 mins. I wanted to send Email from R - whenever an iteration is failed…
Prasanna Nandakumar
  • 4,295
  • 34
  • 63
1
2 3 4 5 6