Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 284: | Line 284: | ||
=== Email Example === | === Email Example === | ||
//Send email example | Send an email message in the background | ||
//You must use the Object to specify SMTP configuration: SMTP server host, port, username, password, | <source lang="JavaScript"> | ||
// Send email example | |||
// You must use the Object to specify SMTP configuration: | |||
// SMTP server host, port, username, password, email address | |||
var cfg = {"host" : "smtp.example.com" , "port":25, | var cfg = {"host" : "smtp.example.com" , "port":25, | ||
"user":"username" , "pass":"password" , | "user":"username" , "pass":"password" , | ||
"from":"username@example.com"} | "from":"username@example.com"}; | ||
email().send(cfg , "to@email.com" , "Subject" , "Text"); | email().send(cfg , "to@email.com" , "Subject" , "Text"); | ||
</source> | |||
== Interaction with the System == | == Interaction with the System == |