Mail
Mail object is used to send e-mails through the mail service.
Version 3.x
None yet.
Version 2.x
Basic Usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| /* globals $ */
/* eslint-env node, dirigible */
var mail = require('service/mail');
var response = require('net/http/response');
var from = "dirigiblelabs@eclipse.org";
var to = "example@gmail.com";
var subject = "Subject";
var content = "Content";
mail.send(from, to, subject, content);
response.println("Mail sent");
response.flush();
response.close();
|
Definition
Functions
Function |
Description |
Returns |
send(from, to, subject, content) |
Sends an e-mail with the given subject and content to the given recipient(s) from a given sender |
- |
Compatibility
Rhino |
Nashorn |
V8 |
β
|
β
|
β |
Edit