Learn R Programming

gmailr (version 0.5.0)

mime: Create a mime formatted message object

Description

Create a mime formatted message object

Usage

mime(..., attr = NULL, body = NULL, parts = list())

Arguments

...
You can set header values initially, or use
attr
attributes to pass to the model
body
text to use for the body
parts
mime parts to pass to the model common_fields set functions to set them after object creation.

See Also

common_fields, body

Examples

Run this code
# using the field functions
msg = mime() %>%
 from("james.f.hester@gmail.com") %>%
 to("CRAN@R-project.org") %>%
 text_body("Please don't reject my package")

# alternatively you can set the fields using mime, however you hav()e
#  to use properly formatted MIME names
msg = mime(From="james.f.hester@gmail.com",
                   To="CRAN@R-project.org") %>%
        html_body("<b>Please<\b> don't reject my package")

Run the code above in your browser using DataLab