https://github.com/olafmersmann/sendmailR
Simple SMTP client implementation for R.
https://github.com/olafmersmann/sendmailR
Last synced: 4 months ago
JSON representation
Simple SMTP client implementation for R.
- Host: GitHub
- URL: https://github.com/olafmersmann/sendmailR
- Owner: olafmersmann
- Created: 2015-09-19T22:12:09.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T12:48:01.000Z (over 1 year ago)
- Last Synced: 2024-04-26T20:07:17.170Z (12 months ago)
- Language: R
- Size: 58.6 KB
- Stars: 11
- Watchers: 4
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - olafmersmann/sendmailR - Simple SMTP client implementation for R. (R)
README
# sendmailR
[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://CRAN.R-project.org/package=sendmailR)
[](https://CRAN.R-project.org/package=sendmailR)
[](https://CRAN.R-project.org/package=sendmailR)Package contains a simple SMTP client with minimal dependencies which provides a portable solution for sending email, including file attachments and inline html reports, from within [R](https://www.r-project.org/). SMTP Authentication and SSL/STARTTLS is implemented using curl.
## Usage
``` r
from <- sprintf("", Sys.info()[4])
to <- ""
subject <- "Hello from R"
body <- list("It works!", mime_part(iris))
sendmail(from, to, subject, body,
control=list(smtpServer="ASPMX.L.GOOGLE.COM"))# With authentication and SSL
sendmail(from="[email protected]",
to=c("[email protected]","[email protected]"),
subject="SMTP auth test",
msg=mime_part("This message was send using sendmailR and curl."),
engine = "curl",
engineopts = list(username = "foo", password = "bar"),
control=list(smtpServer="smtp://smtp.gmail.com:587", verbose = TRUE)
)
```## Install from github
To install the bleeding edge version from GitHub using [`devtools`](https://github.com/r-lib/devtools):
```splus
library("devtools")
install_github("olafmersmann/sendmailR")
```Or using [`pak`](https://github.com/r-lib/pak):
```splus
library("pak")
pkg_install("olafmersmann/sendmailR")
```