Does anyone know how to bcc in R? -
library("mailr") sender <- "sender@gmail.com" bcc<- c("bcc recipient <bcc1@gmail.com.tr>","bcc recipient<bcc2@gmail.com.tr>") send.mail(from = sender, bcc<- c("bcc recipient <bcc1@gmail.com.tr>","bcc recipient<bcc2@gmail.com.tr>"), subject = "subject", body = "body ", authenticate=true, smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "yourusername@gmail.com", passwd = "yourpassword", ssl = true), send = true, attach.files = c("c:/users/admin/desktop/forecast.csv"), file.names = c("demand_forecast.csv"))
do u know how send mail bcc, format?it working recipents can see eachother
you have mistakenly used assignment operator inside function send.mail()
.
this should work:
library("mailr") sender <- "sender@gmail.com" bcc<- c("bcc recipient <bcc1@gmail.com.tr>","bcc recipient<bcc2@gmail.com.tr>") send.mail(from = sender, bcc = c("bcc recipient <bcc1@gmail.com.tr>","bcc recipient<bcc2@gmail.com.tr>"), subject = "subject", body = "body", authenticate=true, smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "yourusername@gmail.com",
passwd = "yourpassword", ssl = true), send = true, attach.files = c("c:/users/admin/desktop/forecast.csv"), file.names = c("demand_forecast.csv"))
Comments
Post a Comment