One-file workflow: reads metadata (to, subject, optional cc, bcc,
thread_id, attachments, labels, from) from the YAML frontmatter at
the top of a markdown draft and dispatches to mc_send(). Lets callers
keep each logical email in a single .md file instead of splitting
subject, body, and recipients across a paired .R script.
Usage
mc_md_send(path, to_self = FALSE, override = list())Arguments
- path
Path to the markdown draft (with YAML frontmatter).
- to_self
Logical. If
TRUE, address the message to the sender and dropcc,bccandthread_id, so it reaches nobody else. DefaultFALSE. Caps the recipients; does not stop the send.- override
Named list of arguments to override frontmatter values at call time (e.g.
list(subject = "New subject")). Overrides merge after frontmatter, sooverridewins.
Value
Invisibly returns whatever mc_send() returns.
Details
Sends. To produce a Gmail draft for review instead, use mc_md_draft().
Required frontmatter fields: to, subject. Missing either triggers an
error that names the file.
See also
mc_md_draft() to draft from frontmatter, mc_send() for the
argument-driven form.
