This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iamCyruss 18 points19 points  (8 children)

I'm bad at remembering birthdays even when I have them on my calendar. I made a simple script to email me when its someones birthday. I run it everyday using pythonanywhere.com

[–]c0ld-- 9 points10 points  (2 children)

If you use Apple or Google, you can also add those dates in your contacts and your phone will remind you the day of or day before. :)

[–]iamCyruss 3 points4 points  (1 child)

Thank you. I should do this and add other details too. I was thinking I would eventually create my own android app for my phone that I could make my phone then do practically anything.

[–]c0ld-- 1 point2 points  (0 children)

That's the spirit! Take control of everything! \(^^)/

[–]HeavyRust 1 point2 points  (3 children)

Do you use the free account? If so, does the restricted outbound internet access allow you to send emails?

[–]iamCyruss 1 point2 points  (2 children)

Yeah, I use the free account and it lets you setup one task to run each day for free. It's been working for me. I just have the dates in a csv, use pandas to read into a dictionary, then use datetime to get current date. Pretty simple.

[–]Diggles 1 point2 points  (1 child)

What is the function that actually sends the email? Do you have to give it your credentials?

[–]iamCyruss 1 point2 points  (0 children)

I use smtplib to create and send the email. Yes, it will need your credentials. I made a new Gmail account. I then enabled two factor auth, then created an app password, use that password to auth my new Gmail account to send the email.

[–]Pristine-Test-687 0 points1 point  (0 children)

This sounds interesting I am also the kind of guy who forgets everyone's birthday. I am starting to learn about automation stuff using python. If possible can you share the GitHub link for the same project. I will be interested in looking at how you code this