TriggerMSG {MobileTrigger} | R Documentation |
Send message from mobile triggers
Description
Function is a wrapper for mailR::send.mail() function. Function gets its mail settings from mailsettings.R file in the [TriggerPath]
Usage
TriggerMSG(path = NULL, subject = NULL, body = NULL, html = F,
authenticate = T, debug = F, ...)
Arguments
path |
string, top level folder called the [TriggerPath] |
subject |
string, subject text of the message |
body |
string, body text of the message |
html |
boolean, use HTML or plain text. |
authenticate |
boolean, use authentication for SMTP sign-in |
debug |
boolean, option to turn on mailR debugging |
... |
additional options to pass through to mailR::send.mail() |
Value
message to be sent to mobile email client.
Examples
####################################################
# Send Message with Moble Triggers #
####################################################
# the function internals will call your mailsettings
# from the mailsettings.R file in your trigger root folder
TriggerMSG(path = 'c:/triggers',
body = "hello world",
subject = "Script List",
html = F, authenticate = T
)
[Package MobileTrigger version 0.0.31 Index]