as title, I have tried and failed... This is a piece of code I found in another thread and it works for only one recipient. Thanks in Advance.
OutApp <- COMCreate("Outlook.Application")
outMail = OutApp$CreateItem(0)
outMail[["To"]] = "xxx@xxx"
outMail[["subject"]] = "xx"
outMail[["body"]] = ""
outMail$Send()
use this highlighted code to share the emails to multiple lists
outMail[["To"]] = paste("[email protected]","[email protected]", sep=";", collapse=NULL)
same logic with Cc for multiple list except below thing
outMail[["Cc"]]= "[email protected]"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With