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
0
votes
1 answer

How to send an email with content of a csv file input in a Shiny App?

I'm trying to make a Shiny app which will read a csv file, and send me an email based on the content of the file. Here's the Shiny app introduction to a file reader, which I'm trying to adapt to my problem: ## Only run examples in interactive R…
0
votes
1 answer

Outlook suppresses authentication with mailR in R for certain email addresses

I'm trying to automate sending emails in R using mailR (it would not let me tag mailR, so I tagged it with a similar package sendmailR) from my company email. I used the code from this post (Send authenticated mails via Outlook through R using…
J.Sabree
  • 2,280
  • 19
  • 48
0
votes
0 answers

Unable to send the Emails from the R

Am unable to send the email through the R, even after less secure apps access allowed (ON). library(xtable) library(mailR) library(sendmailR) library(rJava) send.mail(from = "eduru.suresh@swiggy.in", to = c("suresh.eduru1@gmail.com"), subject=…
0
votes
1 answer

Install rJava package on AWS EC2 instance

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…
ML_Enthousiast
  • 1,147
  • 1
  • 15
  • 39
0
votes
1 answer

How to tweak in mail Body using MailR in R

I am new to using Library mailR and search a lot on google but couldn't found anything useful. I have 2 html table in R, i want to sent them using MailR library in mail body but when i'm sending the mail both table looks like joined to each…
Roy1245
  • 507
  • 4
  • 18
0
votes
0 answers

Issue connecting to Gmail when using mailR package to send email

I am trying to send mail from R through gmail using the mailR package. I was able to use it using the unsecure host and port 25, but it gets sorted to spam (which obviously isn't super desirable). I have enable allowing less secure apps to send…
M Betz
  • 53
  • 7
0
votes
0 answers

Email dataframe as table in email body with MailR

I want to send the below table in the body of the mail. i'm using mailR package. + ------------+---------------+------------+ | date | device_type | platform | +============+===============+============+ | 2017-01-24 | desktop | …
ariel
  • 77
  • 1
  • 1
  • 10
0
votes
0 answers

How to send mail using MailR package, when your account has 2 step verification

I am trying to send email from R using MailR package. This works awesome when I try on my personal gmail account. But when I try to run same with my corporate mail id, it doesn't work. One problem I found is because of 2 step authentication. I have…
Swetha K V
  • 43
  • 1
  • 6
0
votes
1 answer

Sending mail from R failed using sendmailR

I am trying to use the mailR library in R to send mail. This is my code: install.packages("sendmailR") library(sendmailR) sender <- "myemailid@umd.edu" recipients <- "myemailid@gmail.com" send.mail(from = sender, to = recipients, subject…
viralshah009
  • 81
  • 1
  • 2
  • 10
0
votes
1 answer

mailR: How to supress Java-Object message after sending email?

I'm using the code below to send authenticated email as documented in https://github.com/rpremraj/mailR. Everything works but looking to suppress the Java-object message below once it's sent as it won't run via batch file. Is this possible? [1]…
user3773444
  • 333
  • 3
  • 12
0
votes
1 answer

SendmailR on virtual machine

I have trouble sending email with the packages sendmailR via Outlook. It work fine on my main computer (windows machine) but when I try it on my virtual machine running with Ubuntu I get the following error: Error in socketConnection(host = server,…
Romain
  • 440
  • 4
  • 17
0
votes
1 answer

Send Email from R with body as integers or list

finlist <- 1:10 library(mailR) sender <- "SENDER@gmail.com" recipients <- c("Recipent@gmail.com") send.mail(from = sender, to = recipients, subject="From R", body = finlist, smtp = list(host.name = "smtp.gmail.com", port =…
Vasim
  • 3,052
  • 3
  • 35
  • 56
0
votes
1 answer

Not able to attach a HTML page to mail body in R

I am trying to add an HTML mail body. 'path_to_html' is clearly visible but I am not able to mail. library(mailR) library(R2HTML) heading <- c( "

A new program



") path_to_html <-…
Shiva Prakash
  • 1,849
  • 4
  • 21
  • 25
0
votes
1 answer

R send email with attachment using sendmailR

I'm trying to attach a file in R using sendmailR. Is this possible? excluding attach.files line sends email without issue. to <- "" subject <- "test attachment" body <- list("test") attach.files = c("test.jpeg"), sendmail(from, to,…
user3773444
  • 333
  • 3
  • 12
-1
votes
1 answer

Is there a way to read a text file and send it as the body of an email using R. I want to send the email using an outlook account

I know that this is possible with python. However, I want to know if there is a way to do this with R as well. Code snippets will be appreciated.
1 2 3 4 5
6