Memento JavaScript Library: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
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, and email address.
<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 ==

Navigation menu