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
1
vote
0 answers

could not find function "send.mail

I am getting the following error trying to use the mailR package (0.4.1). Error in send.mail(from = "EMAIL@gmail.com", to = EMAIL@gmail.com", : could not find function "send.mail Code is listed below. Just trying to send an email with an…
Eric
  • 103
  • 11
1
vote
0 answers

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

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…
Arturo Sbr
  • 5,567
  • 4
  • 38
  • 76
1
vote
0 answers

unable to update package base64enc after update to R to 3.5.0

This is the first time I post a question here, however I have found many answers here already. Thanks for that. We upgraded R on our Linux server to version 3.5.0 recently and now I am unable to use the sendmailR package. I have reinstalled the…
Eva
  • 61
  • 4
1
vote
1 answer

Send mail with gmail and R

I am simply trying to send an email with R through my gmail account using the mailR package but it does not seem to work. I get this error: Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : …
ML_Enthousiast
  • 1,147
  • 1
  • 15
  • 39
1
vote
2 answers

R mailR package issues with sending message to STMP Server (gmail)

I have been toying around with the mailR package to send emails from my Gmail account, but so far I have been unable to make it work. The code is as following (with emails and passwords replaced with 'aaaa' for…
Josh Kraushaar
  • 369
  • 5
  • 17
1
vote
2 answers

How to email an R markdown report in any format (PDF, HTML, WORD) when it is generated?

I have an R shiny application that generates an R markdown report in any format depending on what the user clicks. I want to email this report to myself every time it is generated I seem to not find much about this online. I wondering if anyone has…
Maurely
  • 35
  • 2
  • 10
1
vote
0 answers

Error when using mailR package on Ubuntu machine

I have the following code: text <- 'sample' sender <- "***" recipients <- c("***") send.mail(from = sender, to = recipients, subject = text, body = text, smtp = list(host.name = "smtp.gmail.com", port = 465, …
Frits Verstraten
  • 2,049
  • 7
  • 22
  • 41
1
vote
0 answers

Unable to send mails using mailR

library("mailR") library(xlsxjars) library(xlsx) recipients<- c("receiver@gmail.com") send.mail(from = "sender@gmail.com", to = recipients, subject = "Fraud Detection", body = "Your credit has been compromised .Please…
1
vote
1 answer

R code not sending email via task scheduler but otherwise runs fine

I have a R code which after doing a bunch of steps sends out an email in the end. When I run this on RStudio, the entire code runs fine and sends out the email. However, when I run this via Windows Task Scheduler, the code still runs fine (and does…
Ankur
  • 35
  • 6
1
vote
1 answer

how to send html file in the body of the mail using R?

I have an html file as an result of my Rmarkdown code. Now I need to send an email with this html file directly in the body of the email, and not in the attachement. I was trying the solution from this post: "send HTML email using R" post But it…
user3825422
  • 143
  • 1
  • 2
  • 11
1
vote
1 answer

How to send a base plot from forecast with sendmailR?

I'm creating a plot using the forecast package- it includes the ability to generate a plot of a forecast generated with base plot. I tried using recordPlot to save the plot to a variable, which allows me to recreate the plot in an interactive…
Eric
  • 177
  • 1
  • 7
1
vote
1 answer

sendmailR: how to handle occasional "Unknown SMTP code" errors

I'm using sendmailR in my R script to send notifications. Sometimes notification fails with the following error: Unknown SMTP code: 452 Error in if (code == lcode) { : argument is of length zero Execution halts. How can I handle such errors, so…
Mikhail
  • 1,326
  • 6
  • 22
  • 29
1
vote
2 answers

how do you convert a data frame to a table to send as an email body

I have this data frame: library(sendmailR) library(pander) dput(s) structure(list(Description = c("ServerA", "ServerB", "ServerC", "ServerD", "ServerE", "ServerF"), Value = c("2", "2", "100", "100", "80", "20")), .Names = c("Description",…
user1471980
  • 10,127
  • 48
  • 136
  • 235
1
vote
2 answers

sendmailR message body

I'm trying to send email messages using the sendmailR package. Referencing the example located here. I am able to send emails just fine but when they appear in my mail client (Outlook 2013) the raw HTML code is displayed. Any ideas how to correct…
1
vote
1 answer

sendmailR adding CC address

I am using sendmailR to automatically send out emails. I want to cc a copy to one address in order to keep as a record. The code I've used is: >from <- "" >to <-…
user2854008
  • 1,161
  • 4
  • 17
  • 23