zorchenhimer / MoviePolls

Voting to decide on a movie to watch with MovieNight
https://discord.gg/F2VSgjJ
16 stars 6 forks source link

Add the abilitiy to send emails #34

Open CptPie opened 4 years ago

CptPie commented 4 years ago

For notifications, password reset etc.

CptPie commented 4 years ago

I've been looking into this issue - no matter how we decide to send emails we need a smtp server to send them. We could either add a config field in which to provide the smtp server / port or we could use a "free to use" smtp server (google provides a smtp server with a limit of 100 mails per day with each google account)

zorchenhimer commented 4 years ago

As you've surely discovered, connecting to an SMTP server and sending emails is pretty straight forward. The issue is with the server to connect to. I'd like it using my domain (eg noreply@zorchenhimer.com) instead of one of my personal email accounts, and it would also need the ability to send a lot of emails in short bursts.

The solutions to this are either find a suitable provider or spin up (and properly configure) an MTA. I'm not too keen on the second option.

But making the functionality available (connect to SMTP server) should be rather straight forward. Although I would like some discussion on the design before implementing anything.