Learn R Programming

sendmailR (version 1.4-0)

mime_part.character: Create an inline character MIME Part

Description

Create a MIME part from a character string. If the string matches a filename, a MIME part containing that file is returned instead.

Usage

# S3 method for character
mime_part(x, name, type = "text/plain", flowed = FALSE, ...)

Value

An S3 mime_part object.

Arguments

x

Character string, possibly a filename.

name

Name of attachment.

type

Content type of inline text. Defaults to "text/plain".

flowed

Should "format=flowed" be added to the content header.

...

Ignored.

See Also

mime_part_html for adding inline HTML