Learn R Programming

sendmailR (version 1.4-0)

mime_part_html: Create an inline HTML MIME Part

Description

Create a MIME part from a character string containing HTML. If the string matches a filename the file is read and inserted as an inline character MIME part.

Usage

mime_part_html(x, ...)

Value

An S3 mime_part object.

Arguments

x

Character string, vector/list of character strings or path to html file.

...

Ignored.

Examples

Run this code
if (FALSE) {
sendmail(
  from="from@example.org",
  to="to1@example.org",
  subject="inline HTML",
  msg=mime_part_html("HelloWorld"),
  control=list(smtpServer="ASPMX.L.GOOGLE.COM")
)

sendmail(
  from="from@example.org",
  to="to1@example.org",
  subject="inline HTML",
  msg=mime_part_html("out/report.html"),
  control=list(smtpServer="ASPMX.L.GOOGLE.COM")
)
}

Run the code above in your browser using DataLab