The message body will be printed if details is TRUE or if the envelope_details option is TRUE.

# S3 method for envelope
print(x, details = NA, ...)

Arguments

x

A message object.

details

Whether or not to display full message content.

...

Further arguments passed to or from other methods.

Examples

msg <- envelope() %>% text("Hello, World!")

print(msg)
#> Date:                         Tue, 27 Feb 2024 07:22:03 GMT

#> X-Mailer:                     {emayili}-0.7.18

#> MIME-Version:                 1.0
print(msg, details = TRUE)
#> Date:                         Tue, 27 Feb 2024 07:22:03 GMT

#> X-Mailer:                     {emayili}-0.7.18

#> MIME-Version:                 1.0

#> Content-Type:                 text/plain; 

#>                               charset=utf-8; 

#>                               format=flowed

#> Content-Transfer-Encoding:    7bit

#> Content-MD5:                  ZajifYh5KDgxtmS9i38K1A==

#> 

#> Hello, World!

options(envelope_details = TRUE)
print(msg)
#> Date:                         Tue, 27 Feb 2024 07:22:03 GMT

#> X-Mailer:                     {emayili}-0.7.18

#> MIME-Version:                 1.0