sendmail: Send Emails

Description Usage Arguments Details Value Important Author(s) References See Also Examples

View source: R/sendmail.R

Description

Send emails via command line tools.

Usage

1
2
3
4
5
6
sendmail(subject, body, body.file = NULL, to, from,
         cc = NULL, bcc = NULL, replyto = NULL,
         server, port, user, password,
         attach = NULL, signature = NULL, signature.file = NULL,
         headers = NULL, wait = TRUE, logfile = NULL,
         encoding = "unknown", method = "default")

Arguments

subject

character

body

character. When of length > 1, then all elements are pasted together, separated by newline characters

body.file

character. If specified, body is ignored.

to

character

from

character

cc

character

bcc

character

replyto

character

server

character

port

character

user

character

password

character

attach

character

signature

character

signature.file

character. Name of file.

headers

a character vector of header lines

wait

logical

logfile

character

encoding

character

method

the programme to be called.

Details

The function constructs an invocation of a command-line utility, specified by method, and then calls the specified method via system. Currently supported are sendemail (default for Unix-like systems) and Blat.

Value

return value of system

Important

The function uses command-line tools.

Author(s)

Enrico Schumann

References

to be added

See Also

to be added

Examples

1
## to be added

enricoschumann/mailtools documentation built on March 22, 2018, 5:12 a.m.