Author Topic: Sending e-mail with EGSL and Luasocket  (Read 2980 times)

Tomaaz

  • Guest
Sending e-mail with EGSL and Luasocket
« on: June 11, 2013, 02:02:00 AM »
This example is sending a simple text e-mail.

Code: [Select]
local smtp = require("socket.smtp")

wiadomosc = {
  headers = {
    to = "<tomaaz@mailmix.pl>",
    subject = "Test"
  },
  body = "This is a test message."
}

smtp.send{
  from = "<egsl.user@retrogamecoding.org>",
  rcpt = "<tomaaz@mailmix.pl>",
  source = smtp.message(wiadomosc)
}

lelldorin

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #1 on: June 20, 2013, 07:13:21 PM »
There i can get socket.smtp

cvirus

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #2 on: June 20, 2013, 07:45:54 PM »

Tomaaz

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #3 on: June 20, 2013, 08:59:28 PM »
On Linux you can find it also in your distro repository. I tested my script on Mint 13 with luasocket and sendmail installed.

Tomaaz

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #4 on: June 24, 2013, 10:39:46 AM »
I don't know who was testing it, but it worked. I got two messages. ;)

lelldorin

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #5 on: July 03, 2013, 04:45:14 PM »
Can anyone make a build of it for Haiku? I have tried it but it does not run. My knowledge is not so good to do that.

lelldorin

  • Guest
Re: Sending e-mail with EGSL and Luasocket
« Reply #6 on: July 03, 2013, 04:49:19 PM »
Can anyone make a build of it for Haiku? I have tried it but it does not run. My knowledge is not so good to do that.

I dont habe init.lua :-(