sendwithus_send: Send an email with template

Description Usage Arguments Value

Description

This sends an email with template

Usage

1
2
3
sendwithus_send(api_key, template_id, variables, recipient, sender,
  esp = NULL, cc = NULL, bcc = NULL, tags = NULL, inline = NULL,
  files = NULL)

Arguments

api_key

api_key for this

template_id

The id for the template you want to send

variables

This is a list containing variables with the variable name as the list item name

recipient

This is a list containing the following params

name

The name of the person

address

The address of the person

sender

This is a list containing the following params

name

The name of the company/person sending

address

The address of the company/person sending

reply_to

The address of the company/person to reply to.

esp

The id of the ESP to send through

cc

A vector containing cc emails

bcc

A vector containing bcc emails

tags

A vector containing tags

inline

A list containing the following

id

The id of the file, e.g 'cat.png'

,

data

base_64_encoded_file_data

files

A data frame containing the following

id

The id of the file, e.g 'cat.png'

,

data

base_64_encoded_file_data

Value

json with status equal to ok


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