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, ...)
Examples
msg <- envelope() %>% text("Hello, World!")
print(msg)
#> Date: Sat, 08 Feb 2025 05:21:45 GMT
#> X-Mailer: {emayili}-0.9.3
#> MIME-Version: 1.0
print(msg, details = TRUE)
#> Date: Sat, 08 Feb 2025 05:21:45 GMT
#> X-Mailer: {emayili}-0.9.3
#> 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: Sat, 08 Feb 2025 05:21:45 GMT
#> X-Mailer: {emayili}-0.9.3
#> MIME-Version: 1.0