[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Watching processes?
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 1 Feb 2011 15:57:02 +0200
On Tue, Feb 1, 2011 at 3:47 PM, Gilles Ganault <gilles.ganault@free.fr> wrote:
> up. I'll see how to write a small Lua script to send an e-mail
> notification.
Sounds like a job for LuaSocket:
local smtp = require 'socket.smtp'
r, e = smtp.send {
from = 'sjdonova@example.com',
rcpt = 'sjdonova@example.com',
server = 'smtp.example.com',
source = smtp.message{
headers = {
subject = "my first message"
},
body = "my message text"
}
}
if not r then print(e) end
steve d.