send_email: Send email

Description Usage Arguments Value Examples

View source: R/utility_functions.R

Description

Send email programmatically

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
send_email(
  from = "Siemens DISW Business Analytics <analytics_insights.sisw@siemens.com>",
  to,
  cc = NULL,
  bcc = NULL,
  reply_to = NULL,
  subject = NULL,
  body = " ",
  html = FALSE,
  inline = TRUE,
  smtp_server = "cismtp.net.plm.eds.com",
  port = 25,
  attachments = NULL,
  file_names = NULL
)

Arguments

from

A valid email address of the sender.

to

A character vector of recipient valid email addresses.Default: Siemens DISW Business Analytics analytics_insights.sisw@siemens.com

cc

A character vector of recipient valid email addresses in cc.

bcc

A character vector of recipient valid email addresses in bcc.

reply_to

A valid email address for the reply.

subject

Subject of the email.

body

Body of the email as text. If the parameter body refers to an existing file location, the text of the file is parsed as body of the email.

html

A boolean value indicating whether the body of the email should be parsed as HTML.

inline

A boolean indicating whether images in the HTML file should be embedded inline.

smtp_server

A character string indicating the SMTP server address.

port

A numeric value indicating port.

attachments

A character vector of paths in the file system linking to files or valid URLs to be attached to the email.

file_names

An optional character vector of display names for the attached files.

Value

A logical value TRUE if the operation is successful.

Examples

1
send_email(to = "receiver@gmail.com")

deepjyot1991/zimplify documentation built on Dec. 19, 2021, 10:09 p.m.