Description Usage Arguments Details Value Examples
Send email via Amazon SES service
1 2 3 4 5 6 7 |
message |
A character string specifying the message body (as plain text). Must specify |
html |
A character string specifying the message body (as HTML). Must specify |
raw |
A raw vector containing a valid email body (of no more than 10MB in size). Can only specify |
subject |
A character string specifying the email subject |
from |
A character string specifying teh sender |
to |
A character vector of TO recipient email addresses. |
cc |
A character vector of CC recipient email addresses. |
bcc |
A character vector of BCC recipient email addresses. |
replyto |
A character vector of reply-to email addresses. |
returnpath |
A character string specifying the email address to which feedback and bounces are sent. |
charset.subject |
An optional character string specifying the character set, e.g., “UTF-8”, “ISO-8859-1”, etc. if |
charset.message |
An optional character string specifying the character set, e.g., “UTF-8”, “ISO-8859-1”, etc. if |
charset.html |
An optional character string specifying the character set, e.g., “UTF-8”, “ISO-8859-1”, etc. if |
... |
Additional arguments passed to |
Send a test or raw email message. get_quota
and get_statistics
provide information on remaining and used email rate limits, respectively.
A character string containg the message ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
# verify email address
verify_identity("me@example.com")
# if email verified, can be used to send a message
a <- get_verification_attrs("me@example.com")
if (a[[1]]$VerificationStatus == "Success") {
# simple plain-text email
send_email("Test Email Body", subject = "Test Email",
from = "me@example.com", to = "recipient@example.com")
# html and plain text versions
send_email(message = "Plain text body",
html = "<div><p style='font-weight=bold;'>HTML text body</p></div>",
subject = "Test Email",
from = "me@example.com", to = "recipient@example.com")
}
## End(Not run)
## Not run:
get_quota()
get_statistics()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.