send_mailgun | R Documentation |
Send an email message via the Mailgun API
send_mailgun(
to = "robin@wustl.edu",
from = "Excited User",
subject = "Mailgun Test",
html = "<div>Test</div>",
text = html,
domain_name = Sys.getenv("MAILGUN_DOMAIN_NAME"),
api_key = Sys.getenv("MAILGUN_API_KEY"),
ssl_verifypeer = TRUE
)
to |
email address of recipient |
from |
name of sender (but will come from mailgun@domain_name) |
subject |
subject of message |
html |
html body of message |
text |
text body of message |
domain_name |
Mailgun domain name (e.g., sandbox |
api_key |
Mailgun API password |
ssl_verifypeer |
whether to verify peer |
TRUE if successful; error otherwise
POST
, set_config
## Not run:
## Retrieve Mailgun domain name and API key from .Renviron file
send_mailgun(
to = "robin@wustl.edu",
from = "Robin",
subject = "Robin Says Hi!",
html = "<p>Hi Robin,</p><p>Robin</p>"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.