All Questions
75 questions
10
votes
6
answers
1k
views
Extract unique email addresses from a text file
I'm working on a Python script that reads a text file and extracts all the unique email addresses. The code works as intended, it produces the correct output, throws no errors, and I've tested it on ...
2
votes
2
answers
161
views
Function to validate that an email address meets some requirements
I want to create a function that checks if an email has a username that is 5 to 20 characters long, starts with an alphabet letter and ends with one domain names of (.org, .net, .org). It also ...
2
votes
1
answer
89
views
Asynchronous mailing tool
I'm trying to change my sync code to asynchronous.
It's my first time doing it like this, so I don't know if this is the right way.
...
1
vote
0
answers
85
views
Two steps changing email system Django + Redis
I created a two steps changing email system. Firstly I show you the concept how it should work and then the code. I am using Django and React.
Main question: is it a good way to do it? Is it fine to ...
4
votes
1
answer
192
views
Fetch CSV file into pandas and send report of Spotify statistics
I'm relatively new and self taught in Python. I've written this code which gets a CSV file from a website, plays around with the data then creates an email with information gleaned.
I know this is too ...
4
votes
2
answers
103
views
SMTP emailing library
Some time ago, I implemented an emailing library to simplify sending emails for several web applications and daemons. As usual, I am interested in improving my code.
...
1
vote
3
answers
685
views
Send email to a list of recipients
I wrote code to automate sending emails using smtp in Python. Below is my code I've written. However, I think there might be a simpler way (simplified code)....could you please review and give me ...
5
votes
1
answer
1k
views
Send email with attachments, including in memory zipped attachments
The below class implementing a simple way to create emails with attachments, including the option to create in-memory zip files and attach them to the email.
Because I am not a professional programmer ...
3
votes
1
answer
170
views
Python - Basic CLI Email Client
This is a basic CLI email client in Python. It can send plain text emails and view inbox. settings.json contains a list of SMTP and IMAP servers used for different ...
1
vote
2
answers
830
views
Python Regex to validate an email
I have written this regex to validate an email. It seems to work fine. Can someone advise on the regex used? Does it work properly or can be done in a better way?
...
6
votes
2
answers
3k
views
Python - use a list of names to find exact match in pandas column containing emails
I have an Excel file containing a free-form text column (that sometimes is structured like an email), where I need to find all first and last names and add an extra columns saying TRUE/FALSE to these ...
1
vote
2
answers
126
views
Mail Crypt Library for encrypted email [REVISION]
This is a revised copy of the Mail Crypt library based on the recommendations from the last post, as well as reviewing recommendations from the first post that I misunderstood.
[Last post] Mail Crypt ...
5
votes
1
answer
339
views
Mail Crypt Library for encrypted email
(Last Post) Mail Crypt CLI encrypted email wrapper for Gmail
I've spent the past few days re-writing the logic of my program as a library to improve the structure and readability of my code. The idea ...
4
votes
1
answer
109
views
Mail Crypt CLI encrypted email wrapper for Gmail
I've spent the past few days writing a python based client that allows you to locally encrypt your message and send it through Gmail. The encryption scheme is based off of hybrid RSA/AES encryption, ...
2
votes
0
answers
89
views
E-Mail Automatisation Project with smtplib but did not use MIMEMultipart
The goal of the project is to automate sending the same e-mail to a list of people with the same text (except the salutation "Dear Name of Person") with an HTML signature and a PDF attachment.
For ...