Lumail - The console email client


Lua primitives: send_email()

NOTE: Lumail-legacy has been superseded by Lumail 2.x, which has a wholly unified Lua API.

This function will allow you to send an email via Lua, without user-intervention.

For example:

function mail_steve()
   mail = {
      ["to"]      = "steve@steve.org.uk",
      ["subject"] = "I like cake",
      ["from"]    = "me@example.com",
      ["body"]    = "This is the body\nThis is the text\n",

      # Optional attachments.
      ["attachments"] = { "/path/to/file1", "/path/to/file2" }
   }

   send_email( mail );
end

Availability

This function has been available since version 0.09.

See Also

See also bounce, compose, editor, forward, on_edit_message, on_message_aborted, on_send_message, reply, sendmail_path.