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"]      = "",
      ["subject"] = "I like cake",
      ["from"]    = "",
      ["body"]    = "This is the body\nThis is the text\n",

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

   send_email( mail );


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.