sg_mime {sg} | R Documentation |
Create and send MIME formatted message objects
Description
Methods for creating and sending MIME messages.
Usage
sg_mime()
sg_from(x, email)
sg_to(x, ...)
sg_cc(x, ...)
sg_bcc(x, ...)
sg_subject(x, subject)
sg_body(x, body, type = "text/html")
sg_attachments(x, ...)
sg_send(x)
Arguments
x |
A MIME object. |
email |
The sender's email address. |
... |
One or more email addresses. |
subject |
The email subject. |
body |
The body content of the email. |
type |
The content type (e.g., "text/plain") |
Value
A MIME object.
Examples
## Not run:
sg_mime() |>
sg_from("sender@example.com") |>
sg_to("recipient1@example.com", "recipient2@example.com") |>
sg_cc("cc1@example.com", "cc2@example.com") |>
sg_bcc("bcc1@example.com", "bcc2@example.com") |>
sg_subject("This is the subject") |>
sg_body("Hello from sg!") |>
sg_attachments("path/to/file1.csv", "path/to/file2.pdf") |>
sg_send()
## End(Not run)
[Package sg version 0.1.0 Index]