send_email: Send email from within R

Description Usage Arguments Value Examples

View source: R/send_email.R

Description

Send email from within R

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
send_email(
  to_email_address,
  cc_email_address = NULL,
  bcc_email_address = NULL,
  from_email_address = NULL,
  from_email_password,
  from_email_username = NULL,
  attachment_path = NULL,
  email_subject = "",
  email_body = "",
  email_body_type = "plain",
  from_host = "smtp.gmail.com",
  port = 465
)

Arguments

to_email_address

A recipient email address.

cc_email_address

A recipient to copy.

bcc_email_address

A recipient to blind copy.

from_email_address

Email address to send from.

from_email_password

Password for the from_email_address.

from_email_username

Username for the from_email_address. If no argument provided the from_email_address will be used.

attachment_path

A path to a file to attach to the outgoing message.

email_subject

A subject for the outgoing message.

email_body

The body of the outgoing message.

email_body_type

Either "plain" or "html". Pass "html" to use custom html formatting in the body of the message

from_host

from_email_address host

port

Port to send the outgoing message through

Value

Sends an email with content based on the arguments provided

Examples

1
## Not run: send_email(email_body = 'Hello world')

BillPetti/bpettir documentation built on Feb. 15, 2022, 2:39 a.m.