send_mail: Send emails

Description Usage Arguments

Description

Send emails

Usage

1
2
3
send_mail(from, to, subject = "", body = "", encoding = "utf-8",
  host.name, port = 465, user.name, passwd, ssl = TRUE,
  authenticate = TRUE, attach.files = NULL)

Arguments

from

A valid email address of the sender.

to

A character vector of recipient valid email addresses.

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.

encoding

Character encoding to use for the email. Supported encodings include iso-8859-1 (default), utf-8, us-ascii, and koi8-r.

host.name

the smtp server

port

smtp port; defaults to 465

user.name

usually same as the email address

passwd

password of the email

ssl

Whether use ssl or not; defaults to true

authenticate

A boolean variable to indicate whether authorization is required to connect to the SMTP server. If set to true, see details on parameters required in smtp parameter.

attach.files

A character vector of paths in the file system linking to files or *valid* URLs to be attached to the email (see details for more info on attaching URLs)


shizidushu/RFunsInUse documentation built on May 24, 2019, 2:03 a.m.