standard.net.mail.mail

mail is available since version 1.0.

Prototype:

number mail(string from, string to, string headers, string content, [, string smtp_server="localhost"][,number smtp_port=25])

Parameters

from
the address of the sender
to
the recipient address
headers
the e-mail headers
content
the e-mail content
smtp_server
the SMTP server used
smtp_port
the SMTP server port

Description:

Sends an email. If an error was encountered, a non-null result will be returned. To get the last error returned by a server, you could use mail_error. Check also the newsletter function.

Return value:

Returns null if no error was encountered, or the error code returned by the server.