lua-users home
lua-l archive

Re: Watching processes?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.

AltStyle によって変換されたページ (->オリジナル) /