R/get_html_str.R

Defines functions get_html_str

Documented in get_html_str

#' Get the HTML content of an email message
#'
#' Get the HTML content string from an `email_message` object as a single-length
#' character vector.
#'
#' @param message The email message object, as created by the `compose_email()`
#'   function. The object's class is `email_message`
#' @return A character object containing the email message's HTML content.
#'
#' @export
get_html_str <- function(message) {
  message[["html_str"]]
}

Try the blastula package in your browser

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

blastula documentation built on Sept. 24, 2023, 1:07 a.m.