-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,13 +64,19 @@ parameters must have the same length as 'attach.files'. In | |
case attach.file is NULL, then these two parameters will be | ||
ignored. | ||
} | ||
\note{ | ||
For more examples, see https://github.com/rpremraj/mailR | ||
} | ||
\examples{ | ||
send.mail(from = "[email protected]", | ||
to = c("[email protected]", "[email protected]"), | ||
subject="Subject of the email", | ||
body = "Body of the email", | ||
smtp = list(host.name = "aspmx.l.google.com", port = 25), | ||
authenticate = FALSE, | ||
send = TRUE) | ||
sender <- "[email protected]" # Replace with a valid address | ||
recipients <- c("[email protected]") # Replace with one or more valid addresses | ||
email <- send.mail(from = sender, | ||
to = recipients, | ||
subject="Subject of the email", | ||
body = "Body of the email", | ||
smtp = list(host.name = "aspmx.l.google.com", port = 25), | ||
authenticate = FALSE, | ||
send = FALSE) | ||
\dontrun{email$send() # execute to send email} | ||
} | ||
|