File: mime_part_html.Rd

package info (click to toggle)
r-cran-sendmailr 1.4-0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 212 kB
  • sloc: makefile: 2
file content (41 lines) | stat: -rw-r--r-- 921 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mime_part.R
\name{mime_part_html}
\alias{mime_part_html}
\title{Create an inline HTML MIME Part}
\usage{
mime_part_html(x, ...)
}
\arguments{
\item{x}{Character string, vector/list of character strings
or path to html file.}

\item{...}{Ignored.}
}
\value{
An S3 \code{mime_part} object.
}
\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.
}
\examples{
\dontrun{
sendmail(
  from="from@example.org",
  to="to1@example.org",
  subject="inline HTML",
  msg=mime_part_html("Hello<br>World"),
  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")
)
}

}