---
title: "Discussion on \"Automating birthday wishes using Python\" | Hashnode"
description: "Discussion on \"Automating birthday wishes using Python\". Creating python program to automatically sends mail and birthday wishes"
url: "https://hashnode.com/posts/automating-birthday-wishes-using-python/6084228afea38e52a9c5be43"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automating birthday wishes using Python](https://swayam-blog.hashnode.dev/automating-birthday-wishes-using-python?utm_source=hashnode&utm_medium=feed)

Creating python program to automatically sends mail and birthday wishes

Apr 24, 2021 · 5 min read · swayam-blog.hashnode.dev  
Updated Apr 28, 2021  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#automation](https://hashnode.com/tag/automation)

## Written by

[Swayam Singh](https://hashnode.com/@rootacess3000)

@rootacess3000 · India

  
[View profile](https://hashnode.com/@rootacess3000)

Machine Learning Practitioner

19 || Sophomore || build crazy stuff

## Responses 2

Markdown supported · ⌘↵ to post

[Swayam Singh](https://hashnode.com/@rootacess3000)

[Apr 28, 2021](https://hashnode.com/posts/automating-birthday-wishes-using-python/6084228afea38e52a9c5be43/comment/6088d6c7586b183dbcfff605)

In the response of a reddit comment, I changed few parts of the code:

1.  now it can handle multiple birthdays on the same day
2.  removed the exception handling part of code

[Swayam Singh](https://hashnode.com/@rootacess3000)

[Apr 24, 2021](https://hashnode.com/posts/automating-birthday-wishes-using-python/6084228afea38e52a9c5be43/comment/60842383ff5fc65284a79ac9)

**hey just a quick note:**

If you want to deploy your your app on online servers so that it can run everyday and check for birthdays, you are most welcome BUT before that make sure you put your `email address` and `passw` into the environment variables

Don't expose it in the code

Happy Coding...
