Send Email from R

Live Online Training : Data Science with R

- Explain Advanced Algorithms in Simple English
- Live Projects
- Case Studies
- Job Placement Assistance
- Get 10% off till Oct 26, 2017
- Batch starts from October 28, 2017

In R, there is a package named mailR that allows you to send emails from R.

R Code : Send Email from R
subject="Test Email",
body="PFA the desired document",
smtp=list( = "",
port = 465, = "",
passwd = "xxxxxxxxx",
ssl = T),
attach.files="C:\\Users\\Deepanshu\\Downloads\\Nature of Expenses.xls")
You can add multiple recipients including the following code.
to = c("Recipient 1 <>", ""),
cc = c("CC Recipient <>"),
bcc = c("BCC Recipient <>")

R Tutorials : 75 Free R Tutorials

About Author:

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has close to 7 years of experience in data science and predictive modeling. During his tenure, he has worked with global clients in various domains like retail and commercial banking, Telecom, HR and Automotive.

While I love having friends who agree, I only learn from those who don't.

Let's Get Connected: Email | LinkedIn

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

3 Responses to "Send Email from R"

  1. wow, it is the edge of R ("era eRa" - in Polish) :)

  2. gmail doesnt allow any non gmail app to send email.
    In my case it is not working


Next → ← Prev