setupGmail: Setup auto-sending an Email after some other code runs

View source: R/email.R

setupGmailR Documentation

Setup auto-sending an Email after some other code runs

Description

Setup auto-sending an Email after some other code runs

Usage

setupGmail(gmailAcct)

Arguments

gmailAcct

Character string containing the name of the gmail account to send the Email from (sorry, this function can only send from gmail accounts at the moment). Do not include the '@gmail.com' part; it is assumed, and added automatically in the function code.

Details

You will be prompted for your Gmail account password when you run this function in a new session. After you have provided it, you do not need to rerun this setup function again within the same session. All it's doing is setting up a security key to access your gmail account.

In addition, you will need to go into your Gmail account and set it to accept remote operation. To do this, go to 'myaccount.google.com/security', or click on your picture (if you're signed into, say, Chrome with your Gmail account) to get to your 'myaccount' page. Then click on 'security' in the list of options to the left of the window, and scroll down to 'less secure app access', and turn this ON. Gmail will squawk, but you must do this or these functions will not work!

Value

A list containing [[1]] the text message body, [[2]] credential key

Examples

  setupGmail("mygmailacct")


johninpdx/JMLUtils documentation built on Dec. 29, 2024, 1:27 p.m.