kjameer0 / note-schedule-emailer

0 stars 0 forks source link

Sending emails #2

Open kjameer0 opened 3 hours ago

kjameer0 commented 3 hours ago

There needs to be a function that can take an email text as a function as well as an email address and send an email. There are multiple emails that I might need to send in the future and it's better to break that off into its own block instead of writing it into the main execution path and commenting it out.

kjameer0 commented 3 hours ago

I want to create a function that takes email texts and subjects as input and sends the email. If the email fails, I need to know. I don't want the app to crash if the email fails. I just want to send the email and be aware of any failures.

If the email fails, I should inform the user by sending them an email about the problem. I need to decide if sending an email for every failure is necessary. I think it is, because I won't know when it will fail.

I will keep a log file for tracking failures. If something other than the email fails, I will try to send the email again.