Skip to contents

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

Usage

# S3 method for class '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:                         Thu, 11 Jul 2024 03:36:37 GMT

#> X-Mailer:                     {emayili}-0.9.1

#> MIME-Version:                 1.0
print(msg, details = TRUE)
#> Date:                         Thu, 11 Jul 2024 03:36:37 GMT

#> X-Mailer:                     {emayili}-0.9.1

#> 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:                         Thu, 11 Jul 2024 03:36:37 GMT

#> X-Mailer:                     {emayili}-0.9.1

#> MIME-Version:                 1.0