Automate Emails Using Python! Build An Automatic Payment Reminder & Schedule Your Scripts Online

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 185

  • @CodingIsFun
    @CodingIsFun  2 года назад +9

    I hope you liked this Python automation project.
    Here are the links to get started ⤵
    🌟 Source Code: github.com/Sven-Bo/automate-sending-emails-using-python
    🌟 Google Sheets Document: pythonandvba.com/sheets-invoice-data
    🌟 Deta documentation: : docs.deta.sh/docs/micros/
    *Happy Coding!* 🚀

    • @Lokihits
      @Lokihits Год назад +1

      hi, my code does not run smoothly, even after copying and pasting the source codes directly, even after typing manually the code line after line. Please advise me on what to do

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@Lokihits Thanks for watching. Unfortunately, with that bit of information, I cannot help you. You might want to take some time to write down which line of code is causing the error; let me know if you have modified the code from the tutorial, explain in more depth what you did to troubleshoot the problem and provide some more context. Thanks!

    • @Lokihits
      @Lokihits Год назад

      Thanks for your reply. sure i could send a screenshot of the error that keeps popping up.

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@Lokihits You cannot attach screenshots to RUclips comment. Just write it down here

  • @faizan1449
    @faizan1449 Год назад +3

    I've never been to the comment section; I usually only read. But for the first time, someone encouraged me to join. This is an excellent video; I never thought someone could explain the concepts this well. Great job! Hoping for growth in this channel! 💯

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for the positive feedback and your kind words! Appreciate you taking the time to leave a comment. 👍

  • @tqdam
    @tqdam 2 года назад +6

    Excellent video! Thank you! I was looking for something like this and your explanation took me over the finish line.

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

  • @Kipzo
    @Kipzo Год назад

    Hi there!
    I've followed step-by-step, nonetheless, in Deta, when I run the micro, the following appears:
    Traceback (most recent call last):
    File "/opt/python/detalib/debugger.py", line 142, in wrap
    result = func(event, context)
    File "/var/task/_entry.py", line 12, in handler
    import main # noqa
    File "/var/task/main.py", line 2, in
    import pandas as pd
    ModuleNotFoundError: No module named 'pandas'
    I have made sure that I installed all the modules everywhere(cmd, pycharm and powersell)
    Please let me know, thank you in advance

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Hard to tell from a distance. My closest guess is that you are getting this issue because you are trying to import a module of a library which is not installed in your virtual environment. If you have run 'pip install pandas' already, ensure to call your Python file from the same environment in which you installed the package. For example, in your IDE/text editor, you might have set a different Python environment for executing your script. Therefore, try to run your Python file also from the command prompt. If that does not work, try searching for the text of your error message on Google/StackOverflow. Happy Debugging!

    • @Kipzo
      @Kipzo Год назад

      @@CodingIsFun Hello,
      My code runs well in my computer, I checked the env variables as well and all paths are included. The only issue I have is when I try to run it on Deta
      . I am now trying to adapt it into a tkinter gui, but honestly, my python experience is basic. My main goal is to share this program with colleagues that wouldn't require to install python. I appreciate your video nonetheless, you inspire me to keep grinding!

  • @saad_jutt_30
    @saad_jutt_30 4 дня назад

    Great i was struggling with this problem for quite some time now. Thanks

    • @CodingIsFun
      @CodingIsFun  3 дня назад +1

      Glad I could help! Thanks for watching! -Sven ✌️

    • @saad_jutt_30
      @saad_jutt_30 3 дня назад

      @@CodingIsFun unfortunatly deta is shutting down, are there any free alternatives that I can use that you know of?

  • @TimePasser
    @TimePasser 2 года назад +1

    You rock 👏👏👏👏 .. Thank you. Exactly what I needed in my organisation. Just got my SMTP settings last week. It's like you are living in my brain. Thank you very very much.

    • @CodingIsFun
      @CodingIsFun  2 года назад +1

      Happy to hear that you found the video helpful. Happy Coding! 🚀

  • @vsddkkjjhgrreertyfdserrftyh
    @vsddkkjjhgrreertyfdserrftyh 2 года назад

    I don't know much about python just start data mining with pandas but want to automatically run my script at particular time and send mail with attachment i was searching for code ..and u shared this.. little bit difficult for me because of new in this..but will definitely try this..thanks... 👍

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! Happy Coding! :)

  • @jmzh1509
    @jmzh1509 4 месяца назад

    This is exactly what I’m looking for, thank you!

    • @CodingIsFun
      @CodingIsFun  4 месяца назад

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video! Cheers, Sven ✌️

  • @ermalgashimramori
    @ermalgashimramori 2 года назад +1

    As always you deliver gold, thank you!

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Hi Ermal Gashi. Happy to see you around. Thanks for watching and your kind words! 👍

  • @JD-kp4dp
    @JD-kp4dp Год назад +1

    Nice video, could this be used to send out emails each day (Monday to Friday) for X amount of weeks to people? e.g. a person is on a 6 week course and you want to send them a daily email with exercises/training to do? Thanks

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. Yes, that sounds possible.

  • @paololigori
    @paololigori Год назад +1

    thank you, that was a great video and i learned a lot! just asking, is there a way to check if your email has been replied to using python? thanks

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!

    • @paololigori
      @paololigori Год назад

      @@CodingIsFun thank you for the feedback!

  • @janneyens1001
    @janneyens1001 8 месяцев назад

    Great video! Do you think it is possible to make the same tool, but for an offline excel sheet?

    • @CodingIsFun
      @CodingIsFun  8 месяцев назад

      Thanks for watching. It is possible, but you would need to schedule your Python script to run locally on your machine instead of running it in the cloud.

  • @paololigori
    @paololigori Год назад +1

    hi everyone, im getting some troubles when replicating this procedure. When i run locally the program it works fine and sends emails (it it has to ). when i push it to deta space i get a SMTP Responce exception , so it is not able to send emails. is there maybe some problems with smtp authorizing the mail sending from the server? Thanks

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching. Hard to tell from a distance. You might want to try reaching out to the experts at the deta discord server: discord.com/invite/K3gYNqHXUU
      Happy Debugging!

    • @paololigori
      @paololigori Год назад

      @@CodingIsFun thank you always for your kind support, appreciate it!

  • @joernhahn7707
    @joernhahn7707 2 года назад

    Thanks for explanation and inspiration! Your videos are great!

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Hi Jörn! Happy to hear that. Thanks for watching the video and taking the time to leave a comment! 👍

  • @emmamutegi5919
    @emmamutegi5919 Год назад +1

    how do I deal with this error: raise SMTPResponseException(code, message)
    smtplib.SMTPResponseException: (334, b'UGFzc3dvcmQ6')

    • @CodingIsFun
      @CodingIsFun  Год назад

      Hard to tell from a distance. Sorry that I cannot help

  • @cambsdigital
    @cambsdigital 3 месяца назад

    Thank you for this. I see DETA has changed a lot since. Did you switch to a different platform for this. I am running into a problem and get this:❗ Error: failed to create a project, developer mode needs to be enabled to build apps.. nowhere online can I find a solution. If you know it please let me know. Thanks.

    • @CodingIsFun
      @CodingIsFun  3 месяца назад +1

      Thanks for watching. Yes, I know. Deta has unfortunately changed a lot. Currently, I run all my Python scripts and APIs on PythonAnywhere. However, the FastAPI feature on PythonAnywhere is currently in Beta, and the web UI for managing FastAPI there is a bit limited for now. Cheers, Sven ✌️

    • @cambsdigital
      @cambsdigital 3 месяца назад

      @@CodingIsFun Thanks again for your trusted recommendation. I would have stuck with Deta (space) had there been some simple way or help forum. Will dive into your channel much more.

  • @mustafakamal8106
    @mustafakamal8106 Год назад

    Hi. I am having some problem in deploying the app. I don't know how to set the environment variables and how to set the event scheduler ( I want to send emails every 15 minutes lets say). Can you please guide me on just the deployment part for the new data space?

  • @gbfd9654
    @gbfd9654 9 месяцев назад

    Hi thanks for the tutorial is there any other free alternatives you could recommend for deta as it looks like you cant host python code there anymore as the site layout has completely changed.

  • @thefatinhasnat
    @thefatinhasnat Год назад

    How did you name the columns in spreadsheet? Mine is showing error raise ValueError(
    ValueError: Missing column provided to 'parse_dates': 'from_date, to_date'

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. In the video I am explaining the spreadsheet structure.

  • @louieb4878
    @louieb4878 Год назад

    I'm getting this error "SmtpClientAuthentication is disabled for the Tenant". Is there another way of sending emails without using smtplib?

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. You can also use an (paid) API Email service. Here is one example: github.com/sendgrid/sendgrid-python/#quick-start

    • @louieb4878
      @louieb4878 Год назад

      @@CodingIsFun Thanks for the reply.

  • @kervinmapalo1400
    @kervinmapalo1400 Год назад

    I used gmail account as sender and receiver email. My code is running perfectly but im not receiving any test emails. Can you help me?

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @brenttonhuey3066
    @brenttonhuey3066 Год назад

    Hello, Is it possible to have this action be triggered with a checkbox instead of a yes or no as your video brings out. I have a spreadsheet that utilizes check marks, and would love if can use this method for it. Thank you for this video. It was very informative

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching the video and for asking your question! I think it's a good idea for you to try it out yourself and see what happens with the checkbox. My guess is that it will be converted to a Boolean value, but it's always helpful to test things out and see how they work in practice.

  • @knmapalo2821
    @knmapalo2821 Год назад

    Im trying to add CC in my emails.
    the Email address is reflected in the email however it is not receive by the person.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @tebogoselepe969
    @tebogoselepe969 2 года назад

    Thank you so much duuuuuuuude!!! i love your work

    • @CodingIsFun
      @CodingIsFun  2 года назад +1

      Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!

    • @tebogoselepe969
      @tebogoselepe969 Год назад

      @@CodingIsFun can this work with streamlit?

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@tebogoselepe969 in general, yes

  • @nolan3139
    @nolan3139 2 года назад

    My python script is not recognizing dotenv... What can I do to fix it?

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thanks for watching. Unfortunately, with that bit of information, I cannot help you. You might want to take some time to write down which line of code is causing the error; let me know if you have modified the code from the tutorial, explain in more depth what you did to troubleshoot the problem and provide some more context. Thanks!

  • @OperationalComplianceCOOP
    @OperationalComplianceCOOP Год назад

    What is the program on which you wrote the rotation of the device "python-dotenv pip install panads . please

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. That was my Windows Terminal

    • @OperationalComplianceCOOP
      @OperationalComplianceCOOP Год назад

      how to do this

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@OperationalComplianceCOOP Here you are: chat.openai.com/share/8d1ea8cc-7ad5-43f3-b207-daa2f2634250

  • @TeckTales
    @TeckTales Год назад

    this is awesome, thank you so much.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad you liked it. Thanks for watching and taking the time to leave a comment!

  • @diymaster101
    @diymaster101 7 месяцев назад

    Hi sir how much is limit for the emails that can be sent daily thank you have a great day

    • @CodingIsFun
      @CodingIsFun  7 месяцев назад

      Thanks for watching. That depends on your email provider. For outlook check out the following link:
      support.microsoft.com/en-us/office/sending-limits-in-outlook-com-279ee200-594c-40f0-9ec8-bb6af7735c2e
      I hope it helps! Cheers, Sven ✌️

  • @atibashar6897
    @atibashar6897 7 месяцев назад

    How to access spreadsheet with my credentials as mentioned here??

    • @CodingIsFun
      @CodingIsFun  7 месяцев назад

      As mentioned in the video, there are already a lot of tutorials here on RUclips on how to access private spreadsheets using Python.

  • @pabs8304
    @pabs8304 Год назад

    Thank you for the turorial! I did want to ask a question though. When I try to load my env vars to deta it returns me the name of the env var and says it has an improper name. I was wondering if you had an idea why that could be. Thank you for your time.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

    • @pabs8304
      @pabs8304 Год назад

      @@CodingIsFun No worries! It was a formatting error in the txt file. However I did want to ask, did you use a virtual environment when making this tutorial? I did and I think its causing me some complications when it comes to uploading it to deta

  • @jamilhassan9491
    @jamilhassan9491 Год назад

    Hi Sven,
    Many thanks for your clear explanations, it's very helpful!
    I'm trying to do the same using my Gmail account. As you explained, i tried to turn On the less secur apps access on my google account but unfortunately,
    Google changed their policy regarding this option last May and now it's no more available...
    So my question is, do you know if there is any why to get around this?
    Is it possible to use additional Python code or specific libraries?
    Thanks again

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thank you for watching the video and for your question. Unfortunately, I do not know how to implement that right off the bat. I would also need to search the internet for a solution. Sorry that I cannot help!

    • @jamilhassan9491
      @jamilhassan9491 Год назад

      ​@@CodingIsFun
      Hi Sven,
      Sorry to disturbe you again with my questions ^^
      I have one more question for you, for which I would greatly appreciate your support.
      In addition to your code I built a function which write in the csv file the sending status (whether emails are sent or not). The function works well on my computer (for each email sent, the status is updated from "to be send" to "sent").
      But when I deploy it using Deta, the emails are sent but I get the following:
      OSError: [Errno 30] Read-only filesystem: 'data_email.csv'
      ---> so the sending status is not added to my csv file "data_email.csv".
      Can you please let me know if you already faced this error ??
      if so, how can i fix it? as the solutions found on internet are not woking for me...
      Thanks

    • @bibybsa7921
      @bibybsa7921 Год назад

      Hello, I have my own. I think you need to activate a specific password for python, I do not remember how I did that, but you need to set a specific password for specific apps, I remember the password is generated automatically, you copy it and you use it for that moment on.
      So, in the Python script I use the X password that was given by gmail. But I log-in with my usual password.

  • @CustAndCode
    @CustAndCode 2 года назад

    very useful! like python as well 😉🤗

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Glad you liked it. Thanks for watching! 👍

  • @GK-tv8io
    @GK-tv8io Год назад

    hey, what if i have an own domain managed by google workspace?

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching. I have explained it at the 3:03 mark. Good luck with your project! 🍀

  • @AtibAshar
    @AtibAshar 6 месяцев назад

    Can I add CSS styling to the message, if yes how shall I do it?

    • @CodingIsFun
      @CodingIsFun  6 месяцев назад

      Yes, you can apply inline style to the HTML element.

    • @TemporaryForstudy
      @TemporaryForstudy 6 месяцев назад

      @@CodingIsFun I am getting an error that outlook authentication is failed. May be due to some security reasons. Your video is almost 2 years old. can you confirm me if this is still working or not

    • @AtibAshar
      @AtibAshar 5 месяцев назад

      While using outlook it's giving "smtpauthenticationerror: (535, b'5.7.139 authentication unsuccessful, account locked.)" error I've tried using app password too for the app but it's still throwing the same error.

  • @hasnainsabir4893
    @hasnainsabir4893 Год назад

    i want to add attachment, i have watched many videos but i failed to add attachment, can you help me for adding attachment files from specific folder more than one files to add and send it with the attachment.

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching. In the official Python documentation you can find examples on how to add attachments: docs.python.org/3/library/email.examples.html

    • @hasnainsabir4893
      @hasnainsabir4893 Год назад

      @@CodingIsFun thanks for your reply I will review

  • @TheFootballFanatics-vi1jn
    @TheFootballFanatics-vi1jn Год назад

    if i had include image in msg.add_alternative() how should i had

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thank you very much for watching the video and your comment. Your requirements are well noted. Yet, I receive many requests for creating individual solutions. As much as I want to help, I simply do not find the time in my daily schedule to develop & test all the different requests. I hope you can understand. Thank you!

  • @arshkamran7795
    @arshkamran7795 Год назад

    can I use css in my html file to make my email file more slick?

    • @CodingIsFun
      @CodingIsFun  Год назад

      Yes, you can. If that helps, consider supporting this channel by buying me a coffee here: "pythonandvba.com/coffee-donation"

  • @leanh_official
    @leanh_official 2 года назад

    I like it, Thank you brother.

    • @CodingIsFun
      @CodingIsFun  2 года назад

      An absolute pleasure, very happy to hear that you found it useful!

  • @thetiagofromchile
    @thetiagofromchile Год назад

    but the same reminder will be sent every minute... How can I set it to be sent only once?

    • @CodingIsFun
      @CodingIsFun  Год назад

      If you want to run the script only once, there is no need to set up a cron job.

    • @thetiagofromchile
      @thetiagofromchile Год назад

      @@CodingIsFun Thanks for the quick reply! What I meant is that, every minute (if the conditions are met) the email will be sent over and over again. I would like the mail to be sent only when the conditions are met for the first time.

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      @@thetiagofromchile It's feasible with additional customization. Consider adding a column called "Sent Already," and mark it with "x" once an email has been sent. Before sending any emails, you can check the conditions in that column. If no "x" is present, proceed with sending the email.

    • @thetiagofromchile
      @thetiagofromchile Год назад

      @@CodingIsFun good idea thanks!

    • @thetiagofromchile
      @thetiagofromchile Год назад

      @@CodingIsFun one last question, how can I write into Google Sheets ?

  • @carl-philippcachej8224
    @carl-philippcachej8224 Год назад

    Thanks!!!¨Helped me a lot!!!

  • @JitendraKumar-mj1mz
    @JitendraKumar-mj1mz 9 месяцев назад

    Hi Sir, Very good evening to you, We want to ensure that, upon using up the allotted 30 GB of storage in the Gmail account, the oldest emails are automatically deleted on a daily basis from both inbox and sent items. If you will provide the process, I will always be thankful for your kind act.

    • @CodingIsFun
      @CodingIsFun  9 месяцев назад

      Thanks for watching. It seems your question is not related to the video. For general Python questions, you may want to check out our discord community: pythonandvba.com/discord

  • @vsddkkjjhgrreertyfdserrftyh
    @vsddkkjjhgrreertyfdserrftyh 2 года назад

    Please Share code for automatic attachment download from the outlook of specific subject line store that data in folder and by using that data run another python script automatically...it will also helpful 😀👍

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Thanks for watching and your suggestion! 👍

  • @vladad162
    @vladad162 Год назад

    This works with Google documents?

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Yes, it is possible to automate Google Docs with Python using the Google Docs API. The Google Docs API allows you to create, edit, and retrieve documents and their contents, as well as manage document formatting, styles, and templates.
      To get started with the Google Docs API, you will need to set up a project in the Google Cloud Console and enable the Google Docs API for your project. Then, you will need to install the Google API Client Library for Python and authenticate your app with the Google Cloud Platform.
      Once you have set up your project and installed the necessary libraries, you can use the Google Docs API to perform various tasks, such as creating new documents, inserting text and images into documents, formatting text and paragraphs, and more.

    • @vladad162
      @vladad162 Год назад

      @@CodingIsFun TY for this answer)

  • @Karthikeyan_11K
    @Karthikeyan_11K 10 месяцев назад

    Sir, can I do the same in java ?

    • @CodingIsFun
      @CodingIsFun  10 месяцев назад +1

      I am not an Java Expert, but I guess it is also possible in Java

    • @Karthikeyan_11K
      @Karthikeyan_11K 10 месяцев назад

      @@CodingIsFun ok sir👍

  • @florianroeseler2404
    @florianroeseler2404 2 года назад

    Very impressive

  • @AbhishekRavinuthala
    @AbhishekRavinuthala Год назад

    (code, resp) = self.auth(
    ^^^^^^^^^^
    authobject(challenge).encode('ascii'), eol='')
    I keep running into this error, can someone help?

    • @CodingIsFun
      @CodingIsFun  Год назад

      Hey there, thanks for watching the video! I'm sorry I can't help you with your problem based on the information you provided. To give me a better idea of what's going on, it would be super helpful if you could write down which line of code is causing the error, let me know if you modified the code from the tutorial, and explain in more detail what you did to troubleshoot the problem. Don't forget to also give me some context about your setup and environment.
      If you're having trouble figuring things out, another option is to join our Discord server at pyhtonandvba.com/discord. You can ask your question there and maybe someone in the community can help out.
      Thanks for understanding.

  • @AtibAshar
    @AtibAshar 4 месяца назад

    How can I embed an image an in email body?

    • @CodingIsFun
      @CodingIsFun  4 месяца назад

      Thanks for watching. Here is an example: stackoverflow.com/a/13071761
      Happy Coding! Cheers, Sven ✌️

  • @yorstrulyyy
    @yorstrulyyy 2 месяца назад

    Does anyone know how to make this as an app or insert in a website?

    • @CodingIsFun
      @CodingIsFun  2 месяца назад

      🙋

    • @yorstrulyyy
      @yorstrulyyy 2 месяца назад

      @@CodingIsFun Can you do a tutorial sir?

  • @anubhavbairoliya1003
    @anubhavbairoliya1003 Год назад

    Hello, nyc video and very detailed. But the mails are going into the spam of my test gmail id. Help Please!!!

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. Sorry, I cannot help with that.

    • @anubhavbairoliya1003
      @anubhavbairoliya1003 Год назад

      @@CodingIsFun can you tell any possible reasons?

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      @@anubhavbairoliya1003 Nope, I would also need to search for a solution online

  • @iDea16388-c
    @iDea16388-c 2 года назад

    thank you brother

    • @CodingIsFun
      @CodingIsFun  2 года назад

      You're very welcome! Thank you for watching and for the comment!

  • @kamrank680
    @kamrank680 2 года назад

    Hi Thank for the video. I am getting the below error when running "main.py". Please assist
    Traceback (most recent call last):
    File "C:\Users\Kamran\main.py", line 3, in
    from deta import app
    ImportError: cannot import name 'app' from 'deta' (C:\Users\Kamran\AppData\Local\Programs\Python\Python39\lib\site-packages\deta\__init__.py)
    [Finished in 1.967s]

    • @CodingIsFun
      @CodingIsFun  2 года назад

      As explained in the video (18:32 min), deta is a third-party package. If you want to install it, you need to run "pip install deta"

    • @likhith6625
      @likhith6625 Год назад

      which ide you used

  • @AliefAdzah
    @AliefAdzah Год назад +1

    patrick can u create the tutorial for deta space? because deta will shuting down and migrate to deta space 😍

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching! In the future, I might create an updated version to connect to deta space.
      P.S. My name is Sven 😅

    • @AliefAdzah
      @AliefAdzah Год назад

      @@CodingIsFunah sorry sven 😆.. thankssss i confused because this migration has minim literation and tutorial.. the structure micros has very different between old and new 😆

  • @AravindBalla-n5g
    @AravindBalla-n5g 10 месяцев назад

    can you please tell me how to run the code

    • @CodingIsFun
      @CodingIsFun  10 месяцев назад +1

      Thanks for watching. I hope this helps: chat.openai.com/share/4e6c2278-f945-41aa-b0c7-35289c3c9ac7

    • @AravindBalla-n5g
      @AravindBalla-n5g 10 месяцев назад

      thank youu @@CodingIsFun

  • @yacine2805
    @yacine2805 2 года назад

    I like it, please can u help me, i have a Excel file, and in this file i have a xml mapping i don't know u have already heard about it, i wanna do the opération of extrecting xml from Excel with python can u help me on it ♥️

    • @CodingIsFun
      @CodingIsFun  2 года назад +1

      Thank you for watching the video. Your questions are great, but finding the time to answer them is difficult. Kindly understand that I receive many requests for individual solutions or modifications. That said, you might want to join our Discord server ( pythonandvba.com/discord ) and post your question there. Thanks for your understanding. Happy Coding!

    • @yacine2805
      @yacine2805 2 года назад

      @@CodingIsFun thnk u so much for ur respense i'm gonna wait for the solution ♥️ wish you continuous success

  • @kervinmapalo5240
    @kervinmapalo5240 Год назад

    i dont understand the error in my code, can you help.
    Here is the Code:
    for _, row in df.iterrows():
    if (present == row["reminder_date"].date()) and (row["name_insured"] != ""):
    send_email(
    subject=f'[SENON UPDATES] : {row["ref_number"]} {row["name_insured"]}',
    receiver_email=row["email"],
    due_date=row["due_date"].strftime("%d, %b %Y"), # example: 11, Aug 2022
    name_insured=row["name_insured"],
    ref_number=row["ref_number"],
    next_report=row["next_report"],
    carbon_copy=row["cc"],
    test_email=row["bcc"],
    adj_name=row["name"],
    Remarks=row["remarks"]
    this it the error message.
    File "C:\Users\Kervin\Desktop\Project\main.py", line 25, in query_data_and_send_emails
    due_date=row["due_date"].strftime("%d, %b %Y"), # example: 11, Aug 2022
    ^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'str' object has no attribute 'strftime'
    Thanks for the help

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching. The error means you're trying to use strftime on a string. You need to convert row["due_date"] to a datetime object first. Here's how: df['due_date'] = pd.to_datetime(df['due_date'])
      Happy Coding!

  • @t1234-q5z
    @t1234-q5z Год назад

    Smart !

    • @CodingIsFun
      @CodingIsFun  Год назад

      Glad you liked it. Thanks for watching.

  • @dcdien07
    @dcdien07 2 года назад

    Thank you! But i want add attack file.

    • @CodingIsFun
      @CodingIsFun  2 года назад

      And where are the files located?

  • @siddharthvj1
    @siddharthvj1 Год назад

    from dotenv import load dotenv is not working

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. With that bit of information I cannot help you. Sorry!

  • @BeingBlogger
    @BeingBlogger Год назад

    deta new --python first_micro not working

    • @CodingIsFun
      @CodingIsFun  Год назад

      Deta change their interface. Kindly refer to their docs

    • @BeingBlogger
      @BeingBlogger Год назад

      Can you please tell me where I can host this for scheduling except deta? Please send me any tutorial

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@BeingBlogger ruclips.net/video/UwvAMkH9tTU/видео.html&feature=shares

  • @nrvijayakumar
    @nrvijayakumar Год назад

    and if i want to attach some thing

    • @CodingIsFun
      @CodingIsFun  Год назад

      ...then you can also do that. Here are some examples: docs.python.org/3/library/email.examples.html

  • @optimusprime6106
    @optimusprime6106 Год назад

    How to find the Port and if I use Gmail .. what would be the server ... How to find it

  • @Goofyno
    @Goofyno 2 года назад

    Hello. Can you update the discord link please? I try to get in touch with you. Thank you! :)

    • @CodingIsFun
      @CodingIsFun  2 года назад

      Here is the link: pythonandvba.com/discord

  • @rb9888
    @rb9888 Год назад

    now how to check your email using python.. :)

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. To check emails using Outlook SMTP and Python, you need to use the IMAP protocol instead of SMTP, as SMTP is for sending emails. You can use the built-in imaplib module. Happy Coding! :)

    • @rb9888
      @rb9888 Год назад

      @@CodingIsFun ok, could you consider to make a video about it? ;-)

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@rb9888 I will keep in mind, but I cannot make any promises

  • @JohnMillares-t6p
    @JohnMillares-t6p 3 дня назад

    Deta Cloud will be shutting down their services

    • @CodingIsFun
      @CodingIsFun  2 дня назад +1

      Yepp, I know. Thanks for the hint. Feel free to use another service. -Sven

  • @sadmansakibabir8456
    @sadmansakibabir8456 Год назад

    Hello,
    this is a great video. I was looking for something like this but I am getting this error in my code
    PS C:\Users\ABIR\Desktop\automatic_reminder> & C:/Users/ABIR/AppData/Local/Programs/Python/Python310/python.exe c:/Users/ABIR/Desktop/automatic_reminder/main.py
    Traceback (most recent call last):
    File "c:\Users\ABIR\Desktop\automatic_reminder\main.py", line 3, in
    from deta import app
    ImportError: cannot import name 'app' from 'deta' (C:\Users\ABIR\AppData\Local\Programs\Python\Python310\lib\site-packages\deta\__init__.py)
    PS C:\Users\ABIR\Desktop\automatic_reminder>

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. As explained here: 18:34 min.
      If you want to run it locally, ensure to run "pip install deta"

    • @sadmansakibabir8456
      @sadmansakibabir8456 Год назад

      I have installed pip install deta but the problem is still prevailing

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@sadmansakibabir8456 I suggest creating a separate virtual environment and installing the required libraries there. This will ensure that you have a clean, isolated environment for running your Python code, which can help avoid conflicts with any other libraries that you have installed on your machine.

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@sadmansakibabir8456 I suggest creating a separate virtual environment and installing the required libraries there. This will ensure that you have a clean, isolated environment for running your Python code, which can help avoid conflicts with any other libraries that you have installed on your machine.

  • @Lokihits
    @Lokihits Год назад

    Thats what keeps popping up when i run the code.
    Traceback (most recent call last):
    File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 2, in
    import smtplib
    ^^^^^^^^^^^^^^
    File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\smtplib.py", line 47, in
    import email.utils
    File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 3, in
    from email.message import EmailMessage
    ModuleNotFoundError: No module named 'email.message'; 'email' is not a package

    • @CodingIsFun
      @CodingIsFun  Год назад

      rename email.py to send_email.py or something else and try again.

    • @Lokihits
      @Lokihits Год назад

      also, this message,
      PS C:\Users\lenovo\Desktop\Automate emails> & 'C:\Users\lenovo\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\lenovo\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '50360' '--' 'c:\Users\lenovo\Desktop\Automate emails\email.py'
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 16
      else find_dotenv()
      ^^^^
      SyntaxError: invalid syntax
      vo\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\lenovo\.vscode\extensions\ms-python.python-202vo\AppData\Local\Programs\Python\Py2.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '50384' '--' 'c:\Users\lenovo\Desktop\Autpy\adapter/../..\debugpy\launcher' omate emails\email.py'
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 2, in
      import smtplib
      ^^^^^^^^^^^^^^
      File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\smtplib.py", line 47, in
      import email.utils
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 3, in
      from email.message import EmailMessage
      ModuleNotFoundError: No module named 'email.message'; 'email' is not a package
      PS C:\Users\lenovo\Desktop\Automate emails> c:; cd 'c:\Users\lenovo\Desktop\Automate emails'; & 'C:\Users\lenovo\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\lenovo\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '50669' '--' 'c:\Users\lenovo\Desktop\Automate emails\email.py'
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 2, in
      import smtplib
      ^^^^^^^^^^^^^^
      File "C:\Users\lenovo\AppData\Local\Programs\Python\Python311\Lib\smtplib.py", line 47, in
      import email.utils
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 3, in
      from email.message import EmailMessage
      ModuleNotFoundError: No module named 'email.message'; 'email' is not a package
      PS C:\Users\lenovo\Desktop\Automate emails> c:; cd 'c:\Users\lenovo\Desktop\Automate emails'; & 'C:\Users\lenovo\AppData\Local\Programs\Python\Python311\python.exe' 'c:\Users\lenovo\.vscode\extensions\ms-python.python-2022.20.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '50680' '--' 'c:\Users\lenovo\Desktop\Automate emails\email.py'
      Traceback (most recent call last):
      File "c:\Users\lenovo\Desktop\Automate emails\email.py", line 2, in
      import smtplib

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@Lokihits Just clone the repo and give it another try.

  • @grandparick3176
    @grandparick3176 Год назад

    Why does your mouth movement and the voice seem off?

    • @CodingIsFun
      @CodingIsFun  Год назад +1

      Thanks for watching. Probably because I did not sync my mic with my camera correctly.

  • @kervinmapalo5240
    @kervinmapalo5240 Год назад

    Hi Sven,
    Thank you for the tutorial.
    My code was already running smoothly, however i am receiving this kind of Spam Error.
    Traceback (most recent call last):
    File "C:\Users\Kervin\Desktop\Project\HO\main.py", line 40, in
    result = query_data_and_send_emails(df)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Kervin\Desktop\Project\HO\main.py", line 24, in query_data_and_send_emails
    send_email(
    File "C:\Users\Kervin\Desktop\Project\HO\send_email.py", line 79, in send_email
    server.sendmail(sender_email, recipient_list, msg.as_string())
    File "C:\Users\Kervin\AppData\Local\Programs\Python\Python311\Lib\smtplib.py", line 908, in sendmail
    raise SMTPDataError(code, resp)
    smtplib.SMTPDataError: (554, b'5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message [BeginDiagnosticData]WASCL UserAction verdict is not None. Actual verdict is RefuseQuota. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is RefuseQuota.[EndDiagnosticData] [Hostname=SL2P216MB2089.KORP216.PROD.OUTLOOK.COM]')
    [Finished in 977.0s]
    can you help me how to avoid being detected as spam?
    Thanks in advance

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.

  • @KhumoGulubane
    @KhumoGulubane Год назад

    I ran the code and it gave me the below:
    C:\Users\tgulu\PycharmProjects\Cal1\venv\Scripts\python.exe C:\Users\tgulu\PycharmProjects\Cal1\send_email.py
    Traceback (most recent call last):
    File "C:\Users\tgulu\PycharmProjects\Cal1\send_email.py", line 66, in
    send_email(
    File "C:\Users\tgulu\PycharmProjects\Cal1\send_email.py", line 61, in send_email
    server.login(sender_email, password_email)
    File "C:\Users\tgulu\AppData\Local\Programs\Python\Python39\lib\smtplib.py", line 750, in login
    raise last_exception
    File "C:\Users\tgulu\AppData\Local\Programs\Python\Python39\lib\smtplib.py", line 739, in login
    (code, resp) = self.auth(
    File "C:\Users\tgulu\AppData\Local\Programs\Python\Python39\lib\smtplib.py", line 662, in auth
    raise SMTPAuthenticationError(code, resp)
    smtplib.SMTPAuthenticationError: (535, b'5.7.3 Authentication unsuccessful [JN2P275CA0019.ZAFP275.PROD.OUTLOOK.COM 2023-05-10T13:15:20.601Z 08DB503DF1E9D070]')
    Process finished with exit code 1
    PS: I don't know anything about coding but I really need this to work.

    • @CodingIsFun
      @CodingIsFun  Год назад

      Thanks for watching. As shown in the video, you must set up the environment variables (using your email address + password). Happy Coding!

    • @OperationalComplianceCOOP
      @OperationalComplianceCOOP Год назад

      Where do I put the email and the password i have same problem@@CodingIsFun

    • @CodingIsFun
      @CodingIsFun  Год назад

      @@OperationalComplianceCOOP please watch the video