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
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
  • 609
  • 1
  • 8
  • 14
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,739
  • 5
  • 24
  • 34
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
  • 292
  • 3
  • 11
3
votes
1 answer

add (png) image inline in an email using R / sendmailR

I am attempting to send an HTML email with inline images. The text below is abridged, but works fine. theString=paste0( '
rayfinkle
  • 65
  • 4
3
votes
0 answers

Sending email from R in AWS

I am trying to send myself a test email from an AWS Virtual Machine (using an EC2 instance.) My R code runs great, but I am now trying to send a test email to my email address using sendmailR. I get the following error message: Error in…
Tom
  • 31
  • 5
3
votes
1 answer

sharing 2 data tables through sendmailR

I am using below code to share the data frame "my_data1" with my friend and the code is working fine. But I have another data frame "my_data2" that I want to share. Please suggest where and how should I add the second table in my…
3
votes
1 answer

Not able to send the pander table intact in Gmail using sendmailR

Please find below my code that I am using to share my analysis (dataframe) with my friend in R. I am using sendmailR package and pander: library(sendmailR) from <- "" to <- "" subject <- "Important Report of the…
AkshitR
  • 33
  • 3
3
votes
2 answers

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

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…
Graeme
  • 333
  • 3
  • 14
3
votes
0 answers

sendmailR with sendmail server?

I'm running rstudio server in a docker container, hadleyverse, running on top of Ubuntu I would like to be able to send an email from there. I tried following this tutorial and wrote this code: #Load library library(sendmailR) #Set mail options…
Ignacio
  • 7,646
  • 16
  • 60
  • 113
3
votes
2 answers

How to configure sendmailR to issue STARTTLS

I'm trying to send emails from R using sendmailR package using the following code, which unfortunately fails : ## Set mail contents from <- sprintf('', Sys.info()[4]) to <- '' subject <- 'Feeding Plots' body <-…
slackline
  • 2,295
  • 4
  • 28
  • 43
2
votes
1 answer

Transferring/emailing files created by Quarto

When I would create a html document in RMarkdown, the file transfer/email process was straightforward; I would simply transfer/email the resulting html file. However, when I try to do the same with a Quarto document, I do not get all of the…
JBurns
  • 61
  • 4
2
votes
1 answer

Error: EmailException (Java): Sending the email to the following server failed : smtp.gmail.com:465

Facing subject error while running below query in R-Studio. Query:- library(mailR) sender<-"abc@gmail.com" To<-c("xyz.@gmail.com") sm<-list(host.name = "smtp.gmail.com", port = 465, user.name="abc@gmail.com", passwd="Password@123", ssl=TRUE) …
2
votes
1 answer

Send email from R using "sendmailR" with more than 1 attachments

I am using sendmailR to send emails from R. Does any one know what needs to be used to be able to attach more than one file? This is the code that I have been using for a single attachment, but I don’t know how to adjust it for more than one…
Pegah
  • 53
  • 1
  • 1
  • 4
2
votes
1 answer

How to embed image inline(not attachment) in sendmailR email?

I have a code to send an image inline in body of email using sendmailR. However after receiving the email it does not contain the image. It shows the error : The linked image cannot be displayed.The file may have been moved,renamed or deleted. Below…
sk8
  • 170
  • 1
  • 9