Function mail(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 2: | Line 2: | ||
Send SMTP mail. | Send SMTP mail. | ||
<i>nil</i> mail(string < | <i>nil</i> <b>mail</b>(<i>string</i> <code>recipient</code>, <i>string</i> <code>subject</code>, <i>string</i> <code>body</code>) | ||
=== Parameters === | === Parameters === | ||
* <i>string</i> <code>recipient</code> - e-mail address of the recipient (To) | |||
* <i>string</i> <code>subject</code> subject of the e-mail | |||
* <i>string</i> <code>body</code> body of the e-mail | |||
=== Return value === | === Return value === | ||
Revision as of 18:43, 18 April 2017
Send SMTP mail.
nil mail(stringrecipient, stringsubject, stringbody)
Parameters
- string
recipient- e-mail address of the recipient (To) - string
subjectsubject of the e-mail - string
bodybody of the e-mail
Return value
nil
Usage
-- sends HTTP GET request
mail("johndoe@example.com","Socket S0732 warning","Warning: S0732 consumption exceeded 10kWh.")