Issue 96: Add Send Email Message Command #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This has the initial changes for the SendEmailMessageCommand. It can send an email using a pgpass-like file for Gmail authenication. It can also use CC, BCC, and an attachment file. I tried multiple attachments but the GUI seemed to only accept one file at a time for the moment, and I'll have to look into that more in the future.
As of these changes, only Gmail accounts can be used to send messages. I have added a simple
create-mailpass.shbash script in the scripts folder that will write the Gmail account ID and password in the user's home directory to .mailpass. The script usage would be similar to the following:./create-mailpass.sh nightsphere88@gmail.com password12345where the two arguments given are account ID and the password. Once that's done, when the SendEmailMessageCommand is run, it will read from .mailpass and authenticate accordingly. There's also basic usage help when running the bash script, but can be made more robust later.