| mail_send | R Documentation |
This function lets the user send Emails with Attachments using MailGun's API service.
mail_send(
from = "RMail <laresbernardo@gmail.com>",
to = "laresbernardo@gmail.com",
cc = NULL,
bcc = NULL,
subject = "Mail from R",
text = " \n",
html = NULL,
attachment = NULL,
service = "mailgun",
creds = NULL,
quiet = FALSE,
...
)
from, to, cc, bcc |
Character. Emails |
subject |
Character. Subject for the email. |
text, html |
Character. Text or HTML to send in the body. |
attachment |
Character, plot or data.frame. Will send the file, plot as PNG or data.frame as CSV, respectively. |
service |
Character. Service platform to search on |
creds |
Character. Credential's user (see |
quiet |
Boolean. Keep quiet? If not, informative messages will be shown. |
... |
Additional parameters. |
No return value, called for side effects.
Other Tools:
autoline(),
bind_files(),
bring_api(),
chr2num(),
db_download(),
db_upload(),
dont_sleep(),
export_plot(),
export_results(),
files_functions(),
font_exists(),
formatColoured(),
formatHTML(),
glued(),
grepm(),
h2o_selectmodel(),
haveInternet(),
image_metadata(),
importxlsx(),
ip_data(),
json2vector(),
list_cats(),
listfiles(),
markdown2df(),
move_files(),
msplit(),
myip(),
quiet(),
read.file(),
statusbar(),
tic(),
try_require(),
updateLares(),
warnifnot(),
what_size()
Other Credentials:
db_download(),
db_upload(),
encrypt_file(),
get_credentials(),
get_tweets(),
queryDB(),
queryGA(),
slackSend(),
stocks_file()
## Not run:
myPlot <- noPlot("My plot")
mail_send(
from = "BLV <myuser@mail.com>",
to = "youruser@mail.com",
cc = "myuser@mail.com",
subject = paste("Daily report:", Sys.Date()),
attachment = myPlot
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.