kraemer-lab / vneyard

Repository for GRAPEVNE modules
MIT License
0 stars 2 forks source link

New module: Send email #11

Closed jsbrittain closed 3 months ago

jsbrittain commented 6 months ago

Pre-check:

Proposed module name [e.g. 'Download file']: Email Proposed category [e.g. 'Tutorial']: Utility Description of module: Send an email to inform the user that a stage in the workflow has completed.

Is this module based on an existing software package [Y/N]: mostly likely, but which depends on implementation If yes, please find a link to the package (preferably the github): linux mail/mailx; python smtplib; other options available

Describe any alternatives you've considered: N/A Add any other context or screenshots about the feature request here: N/A

jsbrittain commented 6 months ago

Sending email on a pre-configured computer is quite trivial, but not so simple if providing a self-contained module that can be run on any system. One popular mail service if gmail, so providing access to this service is desirable. Gmail however operates security restrictions that must be considered.

Relevant resources:

Briefly, the old method of submitting a username and password for smtp access no longer works with gmail. Instead, set-up a gmail account (so that you are not using your personal account); activate 2FA (this enabled app passwords); Add an App Password; Provide the accounts username and 'app password' (in-place of the account password). This should work! Alternative methods include OAuth, which requires additional settings.