Create a message.

envelope(
  to = NULL,
  from = NULL,
  cc = NULL,
  bcc = NULL,
  reply = NULL,
  subject = NULL,
  text = NULL,
  html = NULL
)

Arguments

to

See to()

from

See from()

cc

See cc()

bcc

See bcc()

reply

See reply()

subject

See subject()

text

See text()

html

See html()

Value

A message object.

See also

Examples

# Create an (empty) message object. msg <- envelope() # Create a complete message object. envelope( to = "bob@gmail.com", from = "craig@gmail.com", cc = "alex@gmail.com", bcc = "shannon@gmail.com", reply = "craig@yahoo.com", subject = "Hiya!", text = "Hi Bob, how are you?" )
#> Date: Tue, 28 Sep 2021 06:51:18 GMT #> To: bob@gmail.com #> From: craig@gmail.com #> Cc: alex@gmail.com #> Bcc: shannon@gmail.com #> Reply-To: list(email = "craig@yahoo.com", display = NA) #> Subject: Hiya! #> X-Mailer: {emayili}-0.5.6