Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Send_email_from_CSV: Update with proper email library, etc#296

Merged
AdityaJ7 merged 5 commits into
Python-World:masterfrom
tripleee:send-email-from-csv-formatting
Oct 2, 2020
Merged

Send_email_from_CSV: Update with proper email library, etc#296
AdityaJ7 merged 5 commits into
Python-World:masterfrom
tripleee:send-email-from-csv-formatting

Conversation

@tripleee
Copy link
Copy Markdown
Contributor

@tripleee tripleee commented Oct 1, 2020

Description

This updates the code, and switches to using the email module from the standard library instead of the brittle and error-prone string pasting in the original.

Also, this adds a proper README with instructions and notes.

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation Update

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

  • I have named my files and folder, according to this project's guidelines.
  • My code follows the style guidelines of this project.
  • My Pull Request has a descriptive title. (not a vague title like Update index.md)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • I have included a requirements.txt file (if external libraries are required.)
  • My changes do not produce any warnings.
  • I have added a working sample/screenshot of the script.

Use snake_case for regular identifiers; restructure imports slightly
RFC5322 generally has the colon immediately adjacent to the header
Replace the basically empty file with a description etc
…Message

Don't teach the young ones to glue together SMTP messages from simple strings; it's ugly and brittle.

Instead, basically copy code from Python's email module documentation
Also requires the `email` module now
@AdityaJ7 AdityaJ7 merged commit a083398 into Python-World:master Oct 2, 2020
@tripleee tripleee deleted the send-email-from-csv-formatting branch October 2, 2020 04:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants