Concept Framework 2.0 documentation Contents | Index

standard.net.mail.mail

Name Version Deprecated
mail version 1.0 no

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.

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

Documented by Eduard Suica, generation time: Fri Jan 21 18:06:20 2011 GMT(c)2011 RadGs Software