webmcp
view framework/env/net/configure_mail.lua @ 461:c72f4cde498b
Bugfix (again) in method check
| author | jbe | 
|---|---|
| date | Tue Jul 26 16:04:10 2016 +0200 (2016-07-26) | 
| parents | 5d307886bd89 | 
| children | f87175f57591 | 
 line source
     1 --[[--
     2 net.configure_mail{
     3   command              = command,              -- table with binary name and static command line arguments
     4   envelope_from_option = envelope_from_option  -- command line option to select "envelope from", e.g. "-f"
     5 }
     7 Configures the mail delivery system.
     8 Default: net.configure_mail{ command={"sendmail", "-t", "-i"}, envelope_from_option="-f" }
    10 --]]--
    12 function net.configure_mail(args)
    13   local mail_config = {
    14     command              = table.new(args.command),
    15     envelope_from_option = envelope_from_option
    16   }
    17   request.configure(function()
    18     net._mail_config = mail_config
    19   end)
    20 end
