TriggerMSG: Send message from mobile triggers

Description Usage Arguments Value Examples

Description

Function is a wrapper for mailR::send.mail() function. Function gets its mail settings from mailsettings.R file in the [TriggerPath]

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
####################################################
# 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
  )
 

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.