Skip to content

Add lesson email#17

Open
James-S-Santangelo wants to merge 6 commits into
utm-coders:gh-pagesfrom
James-S-Santangelo:add_lesson_email
Open

Add lesson email#17
James-S-Santangelo wants to merge 6 commits into
utm-coders:gh-pagesfrom
James-S-Santangelo:add_lesson_email

Conversation

@James-S-Santangelo
Copy link
Copy Markdown
Member

  • Script to automatically send current day's lesson as Email to UTM bio department. Note: Current receiving email is James' gmail account for testing. Add additional Emails to receivers list in script for testing.
  • Script requires sender Email be specified as command-line argument. Currently, this must be a UToronto Email.
  • User will be prompted for UTORID and password following execution.

Comment thread scripts/lessonEmail.py
parser = argparse.ArgumentParser(
prog="Send Email to UTM biology department with details for current day's programming workshop, including link to livestream.")
parser.add_argument(
'sender', help="Email from which to send Email. Currenty, must be UToronto Email.", type=str)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/currenty/currently

Comment thread scripts/lessonEmail.py
sender = args['sender'] # Get sender from command-line

# Email sent to all addresses in list
receivers = ['james.santangelo37@gmail.com', 'ahmed.hasan@mail.utoronto.ca']
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have the listserv added to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants