Description Usage Arguments Value Examples
This is the heart of the MobileTrigger package. You specify where you want your tigger folder to be and some e-mail information and this This function builds all the scripts you need to get started. At this time, the function works ONLY for windows users.
1 | SetupWindowsTrigger(path = NULL, SMTP.Settings, Mail.To, Mail.From)
|
path |
string, top level folder called the [TriggerPath] |
SMTP.Settings |
list, list of smtp.setting to send to mailR::mail.send. See examples below for outlook and other styles of smtp setting might be specified |
Mail.To |
string, e-mail address you want MobileTriggers to respond to |
Mail.From |
string, e-mail address you want MobileTriggers to use to send. |
Sets up a folder and file structure at the [TriggerPath].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #################################
# Setting of MobileTriggers #
#################################
## OUTLOOK Style (uses tls = TRUE argument) ###
SetupWindowsTrigger(path="c:/triggers",
Mail.To = "Your.Email@mobile.com",
Mail.From = "someuser@outlook.com",
SMTP.Settings=list(
host.name = 'smtp.office365.com',
port = 587,
user.name = 'someuser@outlook.com',
passwd = 'password', tls = TRUE)
)
## Other STYLE (uses ssl = TRUE argument) ###
SetupWindowsTrigger(path="c:/triggers",
Mail.To = "Your.Email@mobile.com",
Mail.From = "R.Triggers@desktop.com",
SMTP.Settings=list(
host.name = 'some.smtp.sever.com',
port = 587,
user.name = 'R.Triggers@desktop.com',
passwd = 'password', ssl = TRUE)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.