Create a message.
envelope(
to = NULL,
from = NULL,
cc = NULL,
bcc = NULL,
reply = NULL,
subject = NULL,
importance = NULL,
priority = NULL,
text = NULL,
html = NULL,
encrypt = FALSE,
sign = FALSE,
public_key = FALSE
)
See to()
.
See from()
.
See cc()
.
See bcc()
.
See reply()
.
See subject()
.
See importance()
.
See priority()
.
See text()
.
See html()
.
Whether to encrypt the message. If TRUE
then the entire
message will be encrypted using the private key of the sender.
Whether to sign the message. If TRUE
then the entire
message will be signed using the private key of the sender.
Whether to attach a public key. If TRUE
then the
public key of the sender will be attached.
A message object.
# Create an (empty) message object.
#
msg <- envelope()
# Create a complete message object, specifying all available fields.
#
envelope(
to = "bob@gmail.com",
from = "craig@gmail.com",
cc = "alex@gmail.com",
bcc = "shannon@gmail.com",
reply = "craig@yahoo.com",
importance = "high",
priority = "urgent",
subject = "Hiya!",
text = "Hi Bob, how are you?"
)
#> Date: Tue, 23 Apr 2024 15:59:37 GMT
#> X-Mailer: {emayili}-0.8.0
#> MIME-Version: 1.0
#> To: bob@gmail.com
#> From: craig@gmail.com
#> Cc: alex@gmail.com
#> Reply-To: craig@yahoo.com
#> Subject: Hiya!
#> Importance: high
#> Priority: urgent