jhuckaby / logalert

Monitor logs (or any text files) and send alerts on specific changes.
Other
23 stars 9 forks source link

Sending emails #10

Open IrfanNian opened 5 days ago

IrfanNian commented 5 days ago

Hi, does this work with common email services like Gmail/Yahoo/Protonmail? I tried with my Gmail email address, indicating my email as user and password as pass in the 'auth' section, but to no avail. Which email services is the easiest to use to send email?

jhuckaby commented 5 days ago

LogAgert uses Nodemailer SMTP under the hood to send mail. While they do support Gmail, they have a specific page explaining the challenges therein:

https://nodemailer.com/usage/using-gmail/

IrfanNian commented 5 days ago

Since there's some challenges, and look a tad tedious (imo), is there any other simpler email services to setup that you would suggest to use it with LogAlert?

jhuckaby commented 5 days ago

Well, it should work with any service that supports the SMTP protocol. I use FastMail myself, but it's not free.

You can also configure LogAlert to send mail "directly" using local sendmail on your server. Once you have sendmail installed and running on your server, just set the SMTP server to localhost and the port to 25.

Just note that emails sent via local sendmail are often flagged as spam by the recipient, so make sure they setup a rule to always deliver the LogAlert emails and skip the spam folder.

Good luck!