pen(host, port [, connect-connection-to]) => connection
open a network connection (using open_network_connection).
If 'connect-connection-to' is a player object, the
connection will be connected to that object when it
gets the first line of input.
:close(connection)
closes the connection & cleans up data
------------------
Parsing network things:
:invalid_email_address(email)
return "" or string saying why 'email' is invalid.
uses .valid_email_regexp
:invalid_hostname(host)
return "" or string saying why 'host' doesn't look
like a valid internet host name
:local_domain(host)
returns the 'important' part of a host name, e.g.
golden.parc.xerox.com => parc.xerox.com
-------------------
Sending mail
:sendmail(to, subject, @lines)
send mail to the email address 'to' with indicated subject.
header fields like 'from', 'date', etc. are filled in.
lines can start with additional header lines.
:raw_sendmail(to, @lines)
used by :sendmail. Send mail to given user at host, just
as specified, no error checking.
================================================================
Parameters:
.active If 0, disabled sending of mail.
.site Where does this MOO run?
(Maybe MOOnet will use it later).
.port The network port this MOO listens on.
.large_domains
A list of sites where more than 2 levels of host name are
significant, e.g., if you want 'parc.xerox.com' to be
different than 'cinops.xerox.com', put "xerox.com" as an
element in .large_domains.
.postmaster
Email address to which problems with MOO mail should
go. This should be a real email address that someone reads.
.maildrop
Hostname to connect to for dropping off mail. Usually can
just be "localhost".
.reply_address
If a MOO character sends email, where does a reply go?
Inserted in 'From:' for mail from characters without
registration addresses.
.trusts
List of (non-wizard) programmers who can call
pen, :sendmail, :close