Added Support for Multi-Email list - #1
Merged
Merged
Conversation
Added input from command line to handle:
default
specific one email
email list (txt file separated by commas)
Increased efficiency in send email to reduce time when sending to a long list
Added .gitignore to ignore log file and text files such as an email list.
Fixed WhiteSpace to make pycharm not angry
Added the ability to use command line for arguments Usages: python rss_pull.py [email] python rss_pull.py [txt file location] python rss_pull.py Co-Authored-By: odinmay <55605576+odinmay@users.noreply.github.com>
bmart18
commented
Apr 22, 2021
| yag=yagmail.SMTP('odinmerlinmay@gmail.com') | ||
| yag.send(to=receiver,subject="Odins Python Newsletter",contents=body,attachments=filename) | ||
| logging.info("Email Sent") | ||
| yag=yagmail.SMTP('mbrad664@gmail.com') |
Contributor
Author
There was a problem hiding this comment.
change this one as well
bmart18
commented
Apr 22, 2021
| argument = sys.argv[1] | ||
| get_info(argument) | ||
| except: | ||
| send_email("mbrad664@gmail.com") |
Contributor
Author
There was a problem hiding this comment.
change to your email or dummy email
odinmay
approved these changes
Apr 22, 2021
odinmay
left a comment
Owner
There was a problem hiding this comment.
Great functionality! Thank You
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moved main methods inside a start() method
Added get_info() to get input from command line to handle:
default
specific one email
email list (txt file separated by commas)
Increased efficiency in send email to reduce time when sending to a long list
Added .gitignore to ignore log file and text files such as an email list when updating branch.