MAILGUNNER_DOMAIN_NAME
and MAILGUNNER_API_KEY
environment variables.emails <- c(
"tim.cook@apple.com",
"bill.gates@microsoft.com",
"elon.musk@tesla.com",
"masayoshi.son@softbank.jp"
)
params <- list(
from = c("Kirill Sevastyanenko", "kirillseva"),
subject = paste("An exciting investment opportunity"),
text = paste0(
"This email was sent to you from R. If you are not excited yet - you should be!\n",
"Contact me at https://github.com/kirillseva for investment opportunities."
),
tag = "investment",
to = emails
)
do.call(mailgunner::send_email, params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.