09.06.2022, 14:34
Yes, add it to the sending script. The original error is from calling function named mail instead of Email. It is also called without subject/message body.
Code:
require('user.Email')
res1, err1 = Email("XXXXXX@gmail.com", "Alarm", "Παραβίαση Σπιτιού")
res2, err2 = Email("DDDDDD@gmail.com", "Alarm", "Παραβίαση Σπιτιού")
log(res1, err1)
log(res2, err2)