-
Notifications
You must be signed in to change notification settings - Fork 0
/
send_emails.R
38 lines (20 loc) · 940 Bytes
/
send_emails.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
library(ponyexpress) # send the emails
body <- "Dear {name},
Happy Valentine's Day!! We made a special heart just for you :D
<img src = '{github_paths}'> </img>
(As an aside, we randomly generated the text with R and have no idea what we sent to you. Ask Katie
if you want to know more!)
We love having you in our lives and wanted to take the time to tell you!
Much love to you <3
Katie, Pippa, and Matthew
<img src = 'https://media.giphy.com/media/26xBRiIYbyjCzYMAU/giphy.gif'> </img>"
df <- emails
df <- rbind(emails, c("Katie Jolly", "katiejolly6@gmail.com", "", ""))
our_template <- glue::glue(glitter_template)
parcel <- parcel_create(emails,
sender_name = "Katie Jolly",
sender_email = "katiejolly6@gmail.com",
subject = "a valentine for you!",
template = our_template)
parcel_preview(parcel)
parcel_send(parcel)