i have a code that sends mail using rstudio In this mail, I want to insert.png image in the body of the mail I have no clue how to get this done
here is my script below.
library(mailR)
sender <- "***********@gmail.com"
recipients <- c("***********@gmail.com")
send.mail(from = sender,
to = recipients,
subject = "Testing",
body =,
smtp = list(host.name = "smtp.gmail.com", port = 465,
user.name = "*************@gmal.com",
passwd = "**************", ssl = TRUE),
authenticate = TRUE,
send = TRUE)
The png image is located in my download folder
"C:/Users/Guest 1/Desktop/Aut/table.testing_1.png"
I want the final output to look like this in the body of the mail
Thank you