tests/multiple_recipients.R

library("sendmailR")

sendmail(from="[email protected]",
         to="[email protected]",
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

sendmail(from="[email protected]",
         to=c("[email protected]", "[email protected]"),
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

sendmail(from="[email protected]",
         to=c("[email protected]", "[email protected]"),
         cc="[email protected]",
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

sendmail(from="[email protected]",
         to=c("[email protected]", "[email protected]"),
         cc="[email protected]",
         subject="foo",
         msg="bar",
         control=list(transport="debug"))
         
sendmail(from="[email protected]",
         to="[email protected]",
         cc=c("[email protected]", "[email protected]"),
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

sendmail(from="[email protected]",
         to="[email protected]",
         bcc="[email protected]",
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

sendmail(from="[email protected]",
         to="[email protected]",
         bcc=c("[email protected]", "[email protected]"),
         subject="foo",
         msg="bar",
         control=list(transport="debug"))

Try the sendmailR package in your browser

Any scripts or data that you put into this service are public.

sendmailR documentation built on May 2, 2019, 6:47 a.m.