This function lets the user send Emails with Attachments using MailGun's API service.
mail_send(
from = "RMail ",
to = "laresbernardo@gmail.com",
cc = NULL,
bcc = NULL,
subject = "Mail from R",
text = " \n",
html = NULL,
attachment = NULL,
service = "mailgun",
creds = NULL,
quiet = FALSE
)
Character. Emails
Character. Subject for the email.
Character. Text or HTML to send in the body.
Character, plot or data.frame. Will send the file, plot as PNG or data.frame as CSV, respectively.
Character. Service platform to search on creds
.
Character. Credential's user (see get_creds()
).
Must contain: url (POST address), api (API key).
Boolean. Keep quite or display messages?
No return value, called for side effects.
Other Tools:
autoline()
,
bind_files()
,
bring_api()
,
db_download()
,
db_upload()
,
export_plot()
,
export_results()
,
get_credentials()
,
h2o_predict_API()
,
h2o_predict_MOJO()
,
h2o_predict_binary()
,
h2o_predict_model()
,
h2o_selectmodel()
,
haveInternet()
,
image_metadata()
,
importxlsx()
,
ip_data()
,
json2vector()
,
listfiles()
,
msplit()
,
myip()
,
quiet()
,
read.file()
,
statusbar()
,
tic()
,
try_require()
,
updateLares()
,
zerovar()
Other Credentials:
db_download()
,
db_upload()
,
get_credentials()
,
get_tweets()
,
queryDB()
,
queryGA()
,
slackSend()
,
stocks_file()
,
stocks_report()
# 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
)
# }
Run the code above in your browser using DataLab