| sendmail {sendmailR} | R Documentation |
Simplistic sendmail utility for R. Uses SMTP to submit a message to a local SMTP server.
sendmail(from, to, subject, msg, ..., headers = list(), control = list())
from |
From whom the mail message is (RFC2822 style address). |
to |
Recipient of the message (valid RFC2822 style address). |
subject |
Subject line of message. |
msg |
Body text of message. No MIME encoding or quoting is performed! |
... |
... |
headers |
Any other headers to include. |
control |
List of SMTP server settings. Valid values are the
possible options for sendmailOptions. |
Olaf Mersmann olafm@datensplitter.net
## Not run:
from <- sprintf("<sendmailR@
to <- "<olafm@datensplitter.net>"
subject <- "Hello from R"
msg <- "It works!"
sendmail(from, to, subject, msg,
control=list(smtpServer="ASPMX.L.GOOGLE.COM"))
## End(Not run)