sendmail: sendmail

View source: R/sendmail.R

sendmailR Documentation

sendmail

Description

Send e-mails from R via SMTP with authentication and encryption

Usage

sendmail(from, to, subject, msg, smtpsettings, attachment = NULL)

Arguments

from

From address.

to

To address

subject

subject of email.

msg

character vector holding lines of email or character string with entire message.

smtpsettings

server settings for the smtp server. A list with the following entries:

server:

address of smtp server, e.g. smtp.googlemail.com

port:

optional port, defaults to 465 (SSL)

username:

If server requires authentication, supply username

password:

password if required

usessl:

If port is set to be different from 465, ssl will not be used by default, can be specified here optionally.

attachment

optional character vector containing path of files to be attached.


christophrust/Rmailer documentation built on April 22, 2023, 5:32 a.m.