Created
December 18, 2020 10:45
-
-
Save irudnyts/d1ac5a57c94fdcffd2413d370d4c3d12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
send_email <- function(...) { | |
member <- tibble(...) | |
target <- member %>% pull(target) | |
email <- member %>% pull(email) | |
compose_email( | |
body = md(c(paste0(text, bold(target), "!"), image)), | |
footer = md("Enjoy your weekend!") | |
) %>% | |
smtp_send( | |
to = email, | |
from = "iegor.rudnytskyi@epfl.ch", | |
subject = "teamR Secret Santa", | |
credentials = creds_key("my_gmail") | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment