Skip to contents

send_email

Usage

send_email(
  subject,
  body = paste("Sent by", Sys.info()["nodename"]),
  emails = config::get("tessiflow.email"),
  smtp = config::get("tessiflow.smtp"),
  attachments = NULL,
  engine = "curl",
  ...
)

Arguments

subject

character subject of the email

body

html of message or a list containing sendmailR::mime_part objects.

emails

email addresses (first will be sender)

smtp

named list, should contain hostname and (optionally) port, which defaults to 25. Additional elements will get merged with ... and passed to curl, see curl::curl_options for more details.

attachments

named vector, names are the attachment names, values are the filenames to attach.

engine

One of:

  • "internal" for the internal smtp transport (default).

  • "curl" for the use of curl for transport. Enable if you need STARTTLS/SSL and/or SMTP authentication. See curl::send_mail.

  • "debug" sendmail returns a RFC2822 formatted email message without sending it.

...

...