This function creates an email using the blastula
package by composing the email body and footer.
create_email(body, footer, username = NULL, name = NULL, code = NULL, ...)
The body content of the email.
The footer content of the email.
(Optional) The username associated with the email.
(Optional) The name of the recipient.
(Optional) A code or verification token to be included in the email.
Additional arguments to be passed to the blastula::compose_email function.
An email object created using the blastula
package.
# Create an email
email <- create_email(
body = "Hello {name}, your username is {username}.",
footer = "Please contact support if you have any questions.",
username = "john123",
name = "John Doe"
)