Difference between revisions of "Function mail()"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:function mail()}} | {{DISPLAYTITLE:function mail()}} | ||
− | Send SMTP mail. | + | Send SMTP mail. Don't forget to set SMTP server in Settings → E-mail in Netio web interface. |
<i>nil</i> <b>mail</b>(<i>string</i> <code>recipient</code>, <i>string</i> <code>subject</code>, <i>string</i> <code>body</code>) | <i>nil</i> <b>mail</b>(<i>string</i> <code>recipient</code>, <i>string</i> <code>subject</code>, <i>string</i> <code>body</code>) |
Latest revision as of 12:09, 25 April 2017
Send SMTP mail. Don't forget to set SMTP server in Settings → E-mail in Netio web interface.
nil mail(stringrecipient
, stringsubject
, stringbody
)
Parameters
- string
recipient
- e-mail address of the recipient (To) - string
subject
subject of the e-mail - string
body
body of the e-mail
Return value
nil
Usage
-- sends HTTP GET request mail("johndoe@example.com","Socket S0732 warning","Warning: S0732 consumption exceeded 10kWh.")