diff --git a/README.md b/README.md index 14c3578..7fa51e9 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,5 @@ Issues/Contibutions Happy to hear about any issues you encounter using mailR. Simply file a ticket on github or feel free to email me, or even send in a patch ;-) Also, would be great to have collaborators to further extend the functionality of mailR. + +[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/1650fb9891b70b7440cc380824b513f0 "githalytics.com")](http://githalytics.com/rpremraj/mailR) diff --git a/man/send.mail.Rd b/man/send.mail.Rd index 24a36b6..8bafd9b 100644 --- a/man/send.mail.Rd +++ b/man/send.mail.Rd @@ -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 = "sender@gmail.com", - to = c("recipient1@gmail.com", "recipient2@gmail.com"), - 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 <- "sender@gmail.com" # Replace with a valid address +recipients <- c("receiver1@gmail.com") # 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} }