Sending emails with outlook with files every month to same clients - python

I send reports every month to clients with outlook. Every client has a report. So every client receives a different report depending on his performance of the month.
For now I send an email manually to every client attaching manually their report. That takes me around 1-2 days every month. I have about 100 clients meaning I send 100 emails every month manually.
I would like to automate that task every month with Python. I would like to use Outlook as I am using it today. I am learning Python for now.
Is there a way to automate that? The input info is:
An email with the client's performance written in the email.
An attached file with the whole report (sometimes multiple reports).
Also have a double check that the report corresponds to the right client.
Thank you!

I believe you can get the anwser you are looking for in https://www.google.com/amp/s/www.freecodecamp.org/news/send-emails-using-code-4fcea9df63f/amp/
There you can get informations about how the mechanics of using python for emails works and how to use it. Cheers!

Related

Telegram Bulk Messaging Limitation

this Platform is really really helpful. My issue is that is it possible to send 500k promotional messages per day? I have the script ready using the API # and API ID using Telethon. But anytime i try to send Messages, the accounts get banned. Maybe it got banned because i was on the same IP Address while scraping the users and sending messages. But what I really need to know is that is it even Possible to send 500k messages in day, if yes:
How many Accounts are needed(where can I get these number of
accounts from)?
Do I have to manually create accounts and receive
OTP's for each or is there a script ready for that as well that I
can implement?
What should be the duration between each messages and
how many messages from one single account.
How to shuffle between accounts while send messages? Manually or is there again a script
ready for it?
Please guys I really really need help. If not 500k how many can i send per day maximum.
You can send up to 20 messages per second in the same chat on Telegram.

How to send emails according to user request in python?

How do i send an email whenever a user requests it?. I thought on a script that sends mails every hour with some content relevant for the recipients, but I dont like the idea of spamming mail to other people. So i would like to send this mail whenever the recipients wants it. For example if this user sends me a mail with a keyword, i would like the sript to run and send the mail back with the content already made up. So, there is no spam and information is sent in a more efficient way.
I appreciate your help in advance.
This is a pretty complex and broad question.
First off, you would need a server or your PC to have the script running all the time or periodically fire off via cron.
Secondly, you would need to keep some kind of job queue where you would register that a user has sent you an email requesting that you send them one in response. There are well developed and complex job queues like Celery, but you could potentially do with something less complex - maybe a Google Sheets table.
Thirdly, you would need to parse emails you receive in order to get the keywords and email addresses. If you go the gmail + google sheets route, you could do it with some custom code probably, but otherwise you would need to implement email checking on your PC or server. Once you parse them, you add them to the jobs queue.
Finally, you need to provide email access to your Py script - meaning SMTP login. The docs have more on this.
As you can see, there are a lot of things to consider and implement, so you maybe better off trying to narrow down your question a bit. :)

How to send automated reminder emails in specific intervals in Python flask

I am quite new in Flask. I am stuck with a specific issue.
I have a requirement where I need to send automated reminder emails at specific intervals. Let's say, every 10 days an automated reminder will be sent to the users who did not fill up a survey form.
How can I achieve this in python flask?
Any help will be appreciable.
You can use flask mail a flask extension that does exactly what you need.
You can send an email every X seconds and when he verified it it would stop sending the email. I'd suggest a simple boolean. If you want you can use BackgroundScheduler(). In order to send it every x seconds.

Use python to implement a async notification system

I have been troubled by a design question.
I want to implement a small service that looks like a mail office. It will accept clients request(in the request it has the message to deliver and destination url info). After that I will help the client to send the message to specified URL. BUT when the first trial fails(I expect a 200 with 'success' response) there is some strategy like I will continually send the message to the destination url at most 10 times. And I will wait for a certain time to send the message again. For example, I send the message immediately after I receive the request(the following looks like a delivery algorithm):
if it fails then
I will wait for 1 minutes to send it again
if it fails again then
I will wait for a longer time period(like 5 minutes) and so on
until the num of trials reaches Max(10 times).
I used to use django framework with django-cron to solve the problem. However it is not accurate for it depends on the time I set for the django-cron(the less time between the cron the better). I don't know whether there is an elegant and appropriate method to solve this kind of problem.
Thank you for your help!

App Engine blocks emails that contain too many links

I have an app that sends me an email every day with a list of tweets. Each tweet contains at least a link. Beginning this month, I stopped receiving the email. At first, I thought the problem was Twitter with its v1.1 API. But after rewriting my app, I noticed that it's GAE that doesn't send the email. To be more precise, it doesn't send the emails that contain multiple links. It's makes no difference if the email is html or plain text.
Did GAE change its spam rules? And if that's the case, why can't I at least send emails to myself(email address registered as administrator)?
I dont know much about GAE, but you can easily avoid this issue using one of many available SMTP providers. For example, http://www.mailgun.com/ has a free plan with 200 messages per day.

Categories