comparison src/lib/Shared.luan @ 40:7ea33179592a

email notification
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Feb 2025 16:44:20 -0700
parents 27c41f22d2a9
children 818697418dbe
comparison
equal deleted inserted replaced
39:471b13e6ce2c 40:7ea33179592a
82 } 82 }
83 end 83 end
84 end 84 end
85 85
86 local send_mail = Mail.sender(Shared.config.mail_server).send 86 local send_mail = Mail.sender(Shared.config.mail_server).send
87 Shared.send_mail = send_mail
87 88
88 function Shared.send_mail_async(mail) 89 function Shared.send_mail_async(mail)
89 thread_run( function() 90 thread_run( function()
90 send_mail(mail) 91 send_mail(mail)
91 end ) 92 end )