Best pract to send mail in Perspective 8

Hi folks, I have to send notification emails at a certain time of day every day.
I thought I would operate as described, tell me if ok:
generate a scheduled gateway event
use the system.net.sendEmail(…) function

my gateway is installed in win10 OS, there is a SMTP server
for reliable testing?

Thanks for the help.

You don’t set up an SMTP server in Ignition. Instead you set up an SMTP server connection. This is a connection between Ignition and your existing SMTP server. This one connection can then be used by Alarms, Reports and system.net.sendEmail() for all projects on the gateway.

https://docs.inductiveautomation.com/display/DOC81/Email+Settings