SetupWindowsTrigger {MobileTrigger}R Documentation

Setup MobileTrigger Folder Structure and Files

Description

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.

Usage

SetupWindowsTrigger(path = NULL, SMTP.Settings, Mail.To, Mail.From)

Arguments

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.

Value

Sets up a folder and file structure at the [TriggerPath].

Examples


#################################
# 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)
  )


[Package MobileTrigger version 0.0.31 Index]