send_text: Send a text to yourself

Description Usage Arguments Details Value See Also Examples

View source: R/send_text.R

Description

Send a text to yourself, using google mail info from a private file

Usage

1
2
send_text(subject = "", body = "", body_sep = "\\n",
  file_private = ".gmail_private", dir_private = NULL)

Arguments

subject

Character string with subject for the email (Can't include single-quotes.)

body

Character string or vector of character strings, with the body of the email; if it's a vector, it's combined with collapse=body_sep (default = "\n"). (Contents can't include single-quotes, and you need to double-backslashed the backslashes.)

body_sep

Character string for combining elements in the input body.

file_private

Character string with file name containing the private information.

dir_private

The directory containing file. If NULL or missing, we use the user's home directory "~". Use "" if the file argument includes the directory.

Details

Uses gmail address and password information in the ~/.gmail_private file (or another file, specified with dir_private and file_private. This should contain records gmail, password, and text, and (optionally) to.

An email will be sent from the address defined in the private file as gmail. It will be sent to the email address defined as text. (If AT\&T is your mobile phone company, this would be an address like 1234567890@txt.att.net.)

Value

Returns value from gmail.

See Also

send_gmail

Examples

1
2
3
4
## Not run: 
send_text("R message", "R process done")

## End(Not run)

kbroman/mygmailR documentation built on Oct. 22, 2019, 11:17 a.m.