mandrill_send_template: Send an email with template

Description Usage Arguments Value

Description

This sends an email with template

Usage

1
2
3
mandrill_send_template(api_key = NA, template_name = NA, variables = NA,
  subject = NA, recipient = NA, sender = NA, contents = NULL,
  images = NULL, attachments = NULL, css = FALSE)

Arguments

api_key

Your Stripe API Key

template_name

name of template on Mandrill to use

variables

list of merge variables used in template to be filled in

subject

character vector (single element) to populate email subject line

recipient

character vector of email addresses of recipients

sender

character vector of senders' email addresses

contents

list HTML contents to be replaced in Mandrill template. These are used to replace content between HTML tags that have a CSS class of 'mc:edit="content_name"' where the name of the object in the list must match the the 'content_name' in in the template.

images

character vector denoting location of PNGs to include in email. PNG file names (minus the suffix and any preceeding path directories) must match the image declaration in the Mandrill template.

attachments

character vector denoting location of attachments to include in email.

css

whether to include inline CSS or not. This CSS must be already present in the Mandrill template

Value

contents of HTTP Response.


Gastrograph/RMandrill documentation built on May 6, 2019, 5:33 p.m.