@sap/async-xsjs 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/LICENSE +37 -0
- package/README.md +445 -0
- package/differences.md +162 -0
- package/docs/$.Application.html +262 -0
- package/docs/$.Session.html +674 -0
- package/docs/$.db.CallableStatement.html +2524 -0
- package/docs/$.db.Connection.html +511 -0
- package/docs/$.db.ParameterMetaData.html +805 -0
- package/docs/$.db.PreparedStatement.html +1796 -0
- package/docs/$.db.ResultSet.html +1308 -0
- package/docs/$.db.ResultSetMetaData.html +800 -0
- package/docs/$.db.SQLException.html +259 -0
- package/docs/$.db.html +773 -0
- package/docs/$.hdb.ColumnMetadata.html +438 -0
- package/docs/$.hdb.Connection.html +663 -0
- package/docs/$.hdb.ProcedureResult.html +280 -0
- package/docs/$.hdb.ResultSet.html +324 -0
- package/docs/$.hdb.ResultSetIterator.html +315 -0
- package/docs/$.hdb.ResultSetMetaData.html +259 -0
- package/docs/$.hdb.SQLException.html +259 -0
- package/docs/$.hdb.html +557 -0
- package/docs/$.html +471 -0
- package/docs/$.jobs.Job.html +783 -0
- package/docs/$.jobs.JobLog.html +380 -0
- package/docs/$.jobs.JobSchedules.html +852 -0
- package/docs/$.jobs.html +238 -0
- package/docs/$.net.Destination.html +304 -0
- package/docs/$.net.Mail.Part.html +510 -0
- package/docs/$.net.Mail.html +504 -0
- package/docs/$.net.SMTPConnection.html +347 -0
- package/docs/$.net.html +749 -0
- package/docs/$.net.http.Client.html +562 -0
- package/docs/$.net.http.Destination.html +237 -0
- package/docs/$.net.http.Request.html +567 -0
- package/docs/$.net.http.html +292 -0
- package/docs/$.security.AntiVirus.html +361 -0
- package/docs/$.security.Store.html +636 -0
- package/docs/$.security.crypto.html +414 -0
- package/docs/$.security.html +247 -0
- package/docs/$.security.x509.html +373 -0
- package/docs/$.text.analysis.Session.html +983 -0
- package/docs/$.text.analysis.html +242 -0
- package/docs/$.text.html +246 -0
- package/docs/$.text.mining.Session.html +2018 -0
- package/docs/$.text.mining.html +242 -0
- package/docs/$.trace.html +525 -0
- package/docs/$.util.SAXParser.html +955 -0
- package/docs/$.util.Zip.html +474 -0
- package/docs/$.util.codec.html +414 -0
- package/docs/$.util.compression.html +357 -0
- package/docs/$.util.html +325 -0
- package/docs/$.util.sql.html +290 -0
- package/docs/$.web.Body.html +333 -0
- package/docs/$.web.EntityList.html +296 -0
- package/docs/$.web.TupelList.html +496 -0
- package/docs/$.web.WebEntityRequest.html +393 -0
- package/docs/$.web.WebEntityResponse.html +392 -0
- package/docs/$.web.WebRequest.html +560 -0
- package/docs/$.web.WebResponse.html +609 -0
- package/docs/$.web.html +246 -0
- package/docs/Copyright-SAP.html +39 -0
- package/docs/Disclaimer-SAP.html +55 -0
- package/docs/index.html +232 -0
- package/docs/styles/jsdoc-default.css +382 -0
- package/lib/AppConfig.js +36 -0
- package/lib/AuditLogger.js +41 -0
- package/lib/cacert.js +26 -0
- package/lib/ctypes.js +153 -0
- package/lib/destinations/dest-provider.js +57 -0
- package/lib/index.js +235 -0
- package/lib/jobs/Action.js +40 -0
- package/lib/jobs/Job.js +100 -0
- package/lib/jobs/JobManager.js +150 -0
- package/lib/jobs/JobsRuntime.js +133 -0
- package/lib/jobs/SqlScriptJobRunner.js +36 -0
- package/lib/jobs/XsjsJobRunner.js +78 -0
- package/lib/jobs/index.js +11 -0
- package/lib/logging.js +16 -0
- package/lib/middleware.js +125 -0
- package/lib/odata/ODataService.js +125 -0
- package/lib/odata/index.js +7 -0
- package/lib/odata/service-factory.js +26 -0
- package/lib/passport-noauth.js +17 -0
- package/lib/routes.js +115 -0
- package/lib/runtime.js +740 -0
- package/lib/sandbox.js +40 -0
- package/lib/utils/XsJsFunctionRunner.js +57 -0
- package/lib/utils/XsJsLibFunctionRunner.js +57 -0
- package/lib/utils/buffer-utils.js +77 -0
- package/lib/utils/compression-utils.js +14 -0
- package/lib/utils/date-utils.js +104 -0
- package/lib/utils/errors/HttpError.js +20 -0
- package/lib/utils/errors/wrap-app-error.js +18 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/xs-function-runner.js +51 -0
- package/lib/utils/xs-types.js +21 -0
- package/lib/utils/xspath.js +36 -0
- package/lib/utils/xsstack.js +28 -0
- package/lib/views/error.html +28 -0
- package/lib/xsjs/Application.js +28 -0
- package/lib/xsjs/Locale.js +53 -0
- package/lib/xsjs/Session.js +31 -0
- package/lib/xsjs/constants.js +71 -0
- package/lib/xsjs/db/common/DbBase.js +85 -0
- package/lib/xsjs/db/common/DbOptions.js +163 -0
- package/lib/xsjs/db/common/arguments-validation.js +102 -0
- package/lib/xsjs/db/common/connection.js +12 -0
- package/lib/xsjs/db/common/enums.js +93 -0
- package/lib/xsjs/db/common/execute-batch.js +38 -0
- package/lib/xsjs/db/common/parse-time.js +139 -0
- package/lib/xsjs/db/dbapi/CallableStatement.js +192 -0
- package/lib/xsjs/db/dbapi/Connection.js +78 -0
- package/lib/xsjs/db/dbapi/DB.js +39 -0
- package/lib/xsjs/db/dbapi/ParameterMetaData.js +118 -0
- package/lib/xsjs/db/dbapi/PreparedStatement.js +78 -0
- package/lib/xsjs/db/dbapi/ResultSet.js +220 -0
- package/lib/xsjs/db/dbapi/ResultSetMetaData.js +116 -0
- package/lib/xsjs/db/dbapi/Statement.js +514 -0
- package/lib/xsjs/db/dbapi/conversions.js +113 -0
- package/lib/xsjs/db/dbapi/fetch-rows.js +32 -0
- package/lib/xsjs/db/hdbapi/Connection.js +525 -0
- package/lib/xsjs/db/hdbapi/HDB.js +32 -0
- package/lib/xsjs/db/hdbapi/ResultSetIterator.js +40 -0
- package/lib/xsjs/db/hdbapi/convert.js +77 -0
- package/lib/xsjs/db/hdbapi/table-string-parser.js +52 -0
- package/lib/xsjs/db/index.js +4 -0
- package/lib/xsjs/index.js +13 -0
- package/lib/xsjs/jobs/Job.js +228 -0
- package/lib/xsjs/jobs/Jobs.js +11 -0
- package/lib/xsjs/jobs/Logs.js +127 -0
- package/lib/xsjs/jobs/Schedule.js +110 -0
- package/lib/xsjs/jobs/Schedules.js +108 -0
- package/lib/xsjs/net/Destination.js +43 -0
- package/lib/xsjs/net/http/Client.js +220 -0
- package/lib/xsjs/net/http/HTTP.js +72 -0
- package/lib/xsjs/net/index.js +5 -0
- package/lib/xsjs/net/smtp/Mail.js +38 -0
- package/lib/xsjs/net/smtp/Part.js +30 -0
- package/lib/xsjs/net/smtp/SMTPConnection.js +39 -0
- package/lib/xsjs/net/smtp/index.js +18 -0
- package/lib/xsjs/net/smtp/nodemailer-util.js +77 -0
- package/lib/xsjs/require.js +39 -0
- package/lib/xsjs/security/AntiVirus.js +31 -0
- package/lib/xsjs/security/Store.js +119 -0
- package/lib/xsjs/security/crypto.js +23 -0
- package/lib/xsjs/security/index.js +5 -0
- package/lib/xsjs/security/x509.js +12 -0
- package/lib/xsjs/text/analysis/Session.js +128 -0
- package/lib/xsjs/text/index.js +30 -0
- package/lib/xsjs/text/mining/Session.js +82 -0
- package/lib/xsjs/trace/trace.js +41 -0
- package/lib/xsjs/util/SAXParser.js +174 -0
- package/lib/xsjs/util/Zip.js +220 -0
- package/lib/xsjs/util/codec.js +33 -0
- package/lib/xsjs/util/compression.js +24 -0
- package/lib/xsjs/util/index.js +22 -0
- package/lib/xsjs/web/BasicWebEntity.js +41 -0
- package/lib/xsjs/web/EntityList.js +11 -0
- package/lib/xsjs/web/TupelLists/CookiesTupelList.js +47 -0
- package/lib/xsjs/web/TupelLists/HeadersTupelList.js +55 -0
- package/lib/xsjs/web/TupelLists/ParametersTupelList.js +83 -0
- package/lib/xsjs/web/TupelLists/TupelListBase.js +45 -0
- package/lib/xsjs/web/WebBody.js +135 -0
- package/lib/xsjs/web/WebEntityRequest.js +40 -0
- package/lib/xsjs/web/WebEntityResponse.js +26 -0
- package/lib/xsjs/web/WebRequest.js +209 -0
- package/lib/xsjs/web/WebResponse.js +183 -0
- package/lib/xsjs/web/index.js +4 -0
- package/lib/xsjs/web/utils/HeadersParser.js +53 -0
- package/lib/xsjs/web/utils/HttpRequestParser.js +93 -0
- package/lib/xsjs/web/utils/MultipartParser.js +163 -0
- package/lib/xsjs/web/utils/MultipartResponseBuilder.js +73 -0
- package/lib/xsjs/web/utils/SetCookieParser.js +32 -0
- package/lib/xsjslib/TextBundleWrapper.js +46 -0
- package/lib/xsjslib/index.js +11 -0
- package/npm-shrinkwrap.json +11540 -0
- package/package.json +84 -0
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>JSDoc: Class: Mail</title>
|
|
7
|
+
<script src="scripts/prettify/prettify.js"></script>
|
|
8
|
+
<script src="scripts/prettify/lang-css.js"></script>
|
|
9
|
+
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<script src="scripts/launch-8b3c5ca29b9e.min.js"></script>
|
|
13
|
+
<script src="scripts/highlight.js"></script>
|
|
14
|
+
<link rel="canonical" href="$.net.Mail.html">
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<div id="main">
|
|
18
|
+
<h1 class="page-title">Class: Mail</h1>
|
|
19
|
+
<section>
|
|
20
|
+
<header>
|
|
21
|
+
<h2>
|
|
22
|
+
<span class="ancestors"><a href="$.html">$</a><a href="$.net.html">.net</a>.</span>
|
|
23
|
+
Mail
|
|
24
|
+
</h2>
|
|
25
|
+
<div class="class-description">Class for constructing and sending multipart emails</div>
|
|
26
|
+
</header>
|
|
27
|
+
<article>
|
|
28
|
+
<div class="container-overview">
|
|
29
|
+
<dt>
|
|
30
|
+
<h4 class="name" id="Mail"><span class="type-signature"></span>new Mail<span
|
|
31
|
+
class="signature">(<span class="optional">MailObject</span>)</span><span
|
|
32
|
+
class="type-signature"></span></h4>
|
|
33
|
+
</dt>
|
|
34
|
+
<dd>
|
|
35
|
+
<h5>Parameters:</h5>
|
|
36
|
+
<table class="params">
|
|
37
|
+
<thead>
|
|
38
|
+
<tr>
|
|
39
|
+
<th>Name</th>
|
|
40
|
+
<th>Type</th>
|
|
41
|
+
<th>Argument</th>
|
|
42
|
+
<th class="last">Description</th>
|
|
43
|
+
</tr>
|
|
44
|
+
</thead>
|
|
45
|
+
<tbody>
|
|
46
|
+
<tr>
|
|
47
|
+
<td class="name"><code>MailObject</code></td>
|
|
48
|
+
<td class="type">
|
|
49
|
+
<span class="param-type">object</span>
|
|
50
|
+
</td>
|
|
51
|
+
<td class="attributes">
|
|
52
|
+
<optional><br>
|
|
53
|
+
</td>
|
|
54
|
+
<td class="description last">JS object containing different part of the email
|
|
55
|
+
in JSON format. Supported properties are {'sender', 'to', 'cc', 'bcc', 'subject',
|
|
56
|
+
'subjectEncoding', 'parts'}.
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
</tbody>
|
|
60
|
+
</table>
|
|
61
|
+
<dl class="details">
|
|
62
|
+
</dl>
|
|
63
|
+
<h5>Examples</h5>
|
|
64
|
+
<pre class="prettyprint"><code>//create empty $.net.Mail
|
|
65
|
+
var mail = new $.net.Mail();</code></pre>
|
|
66
|
+
<pre class="prettyprint"><code>//create email from JS Object and send
|
|
67
|
+
var mail = new $.net.Mail({
|
|
68
|
+
sender: {address: "sender@sap.com"},
|
|
69
|
+
to: [{ name: "John Doe", address: "john.doe@sap.com", nameEncoding: "US-ASCII"}, {name: "Jane Doe", address: "jane.doe@sap.com"}],
|
|
70
|
+
cc: ["cc1@sap.com", {address: "cc2@sap.com"}],
|
|
71
|
+
bcc: [{ name: "Jonnie Doe", address: "jonnie.doe@sap.com"}],
|
|
72
|
+
subject: "subject",
|
|
73
|
+
subjectEncoding: "UTF-8",
|
|
74
|
+
parts: [ new $.net.Mail.Part({
|
|
75
|
+
type: $.net.Mail.Part.TYPE_TEXT,
|
|
76
|
+
text: "The body of the mail.",
|
|
77
|
+
contentType: "text/plain",
|
|
78
|
+
encoding: "UTF-8",
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
81
|
+
var returnValue = <b>await </b>mail.send();
|
|
82
|
+
var response = "MessageId = " + returnValue.messageId + ", final reply = " + returnValue.finalReply;
|
|
83
|
+
|
|
84
|
+
$.response.status = $.net.http.OK;
|
|
85
|
+
$.response.contentType = "text/html";
|
|
86
|
+
<b>await </b>$.response.setBody(response);</code></pre>
|
|
87
|
+
</dd>
|
|
88
|
+
</div>
|
|
89
|
+
<h3 class="subsection-title">Classes</h3>
|
|
90
|
+
<dl>
|
|
91
|
+
<dt><a href="$.net.Mail.Part.html">Part</a></dt>
|
|
92
|
+
<dd></dd>
|
|
93
|
+
</dl>
|
|
94
|
+
<h3 class="subsection-title">Members</h3>
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>
|
|
97
|
+
<h4 class="name" id="bcc"><span class="type-signature"></span>bcc<span class="type-signature"> :array</span>
|
|
98
|
+
</h4>
|
|
99
|
+
</dt>
|
|
100
|
+
<dd>
|
|
101
|
+
<div class="description">
|
|
102
|
+
Property used for initializing "bcc" property of the mail. It is an
|
|
103
|
+
array containing objects with three properties. The first one is the
|
|
104
|
+
name of the person, the second one is the actual mail address, the
|
|
105
|
+
third one is the name encoding ex. {name: "John Doe", address:
|
|
106
|
+
"john.doe@sap.com", nameEncoding: "UTF-8"} or {name: "John Doe",
|
|
107
|
+
address: "john.doe@sap.com"} or {address: "john.doe@sap.com"} or just
|
|
108
|
+
"john.doe@sap.com". The name and the name encoding of the person can
|
|
109
|
+
be skipped, but the mail address cannot. If 'address' property is not
|
|
110
|
+
set, the mail won't be send at all.
|
|
111
|
+
</div>
|
|
112
|
+
<h5>Type:</h5>
|
|
113
|
+
<ul>
|
|
114
|
+
<li>
|
|
115
|
+
<span class="param-type">array</span>
|
|
116
|
+
</li>
|
|
117
|
+
</ul>
|
|
118
|
+
<dl class="details">
|
|
119
|
+
</dl>
|
|
120
|
+
</dd>
|
|
121
|
+
<dt>
|
|
122
|
+
<h4 class="name" id="cc"><span class="type-signature"></span>cc<span
|
|
123
|
+
class="type-signature"> :array</span></h4>
|
|
124
|
+
</dt>
|
|
125
|
+
<dd>
|
|
126
|
+
<div class="description">
|
|
127
|
+
Property used for initializing "cc" property of the mail. It is an
|
|
128
|
+
array containing objects with three properties. The first one is the
|
|
129
|
+
name of the person, the second one is the actual mail address, the
|
|
130
|
+
third one is the name encoding ex. {name: "John Doe", address:
|
|
131
|
+
"john.doe@sap.com", nameEncoding: "UTF-8"} or {name: "John Doe",
|
|
132
|
+
address: "john.doe@sap.com"} or {address: "john.doe@sap.com"} or just
|
|
133
|
+
"john.doe@sap.com". The name and the name encoding of the person can
|
|
134
|
+
be skipped, but the mail address cannot. If 'address' property is not
|
|
135
|
+
set, the mail won't be send at all.
|
|
136
|
+
</div>
|
|
137
|
+
<h5>Type:</h5>
|
|
138
|
+
<ul>
|
|
139
|
+
<li>
|
|
140
|
+
<span class="param-type">array</span>
|
|
141
|
+
</li>
|
|
142
|
+
</ul>
|
|
143
|
+
<dl class="details">
|
|
144
|
+
</dl>
|
|
145
|
+
</dd>
|
|
146
|
+
<dt>
|
|
147
|
+
<h4 class="name" id="parts"><span class="type-signature"></span>parts<span class="type-signature"> :array</span>
|
|
148
|
+
</h4>
|
|
149
|
+
</dt>
|
|
150
|
+
<dd>
|
|
151
|
+
<div class="description">
|
|
152
|
+
Property used for initializing "parts" property of the mail. It is an
|
|
153
|
+
array containing $.net.Mail.Part() objects.
|
|
154
|
+
</div>
|
|
155
|
+
<h5>Type:</h5>
|
|
156
|
+
<ul>
|
|
157
|
+
<li>
|
|
158
|
+
<span class="param-type">array</span>
|
|
159
|
+
</li>
|
|
160
|
+
</ul>
|
|
161
|
+
<dl class="details">
|
|
162
|
+
</dl>
|
|
163
|
+
</dd>
|
|
164
|
+
<dt>
|
|
165
|
+
<h4 class="name" id="sender"><span class="type-signature"></span>sender<span class="type-signature"> :object</span>
|
|
166
|
+
</h4>
|
|
167
|
+
</dt>
|
|
168
|
+
<dd>
|
|
169
|
+
<div class="description">
|
|
170
|
+
Property used for initializing "sender" property of the mail. The
|
|
171
|
+
object contains three properties. The first one is the name of the
|
|
172
|
+
person, the second one is the actual mail address, the third one is
|
|
173
|
+
the name encoding ex. {name: "John Doe", address: "john.doe@sap.com",
|
|
174
|
+
nameEncoding: "UTF-8"} or {name: "John Doe", address:
|
|
175
|
+
"john.doe@sap.com"} or {address: "john.doe@sap.com"} or just
|
|
176
|
+
"john.doe@sap.com". The name and the name encoding of the person can
|
|
177
|
+
be skipped, but the mail address cannot. If 'address' property is not
|
|
178
|
+
set, the mail won't be send at all. The "sender" property is a
|
|
179
|
+
mandatory field, if it is not set or is not set properly the mail
|
|
180
|
+
won't be sent.
|
|
181
|
+
</div>
|
|
182
|
+
<h5>Type:</h5>
|
|
183
|
+
<ul>
|
|
184
|
+
<li>
|
|
185
|
+
<span class="param-type">object</span>
|
|
186
|
+
</li>
|
|
187
|
+
</ul>
|
|
188
|
+
<dl class="details">
|
|
189
|
+
</dl>
|
|
190
|
+
</dd>
|
|
191
|
+
<dt>
|
|
192
|
+
<h4 class="name" id="subject"><span class="type-signature"></span>subject<span
|
|
193
|
+
class="type-signature"> :string</span></h4>
|
|
194
|
+
</dt>
|
|
195
|
+
<dd>
|
|
196
|
+
<div class="description">
|
|
197
|
+
Property used for initializing "subject" property of the mail
|
|
198
|
+
</div>
|
|
199
|
+
<h5>Type:</h5>
|
|
200
|
+
<ul>
|
|
201
|
+
<li>
|
|
202
|
+
<span class="param-type">string</span>
|
|
203
|
+
</li>
|
|
204
|
+
</ul>
|
|
205
|
+
<dl class="details">
|
|
206
|
+
</dl>
|
|
207
|
+
</dd>
|
|
208
|
+
<dt>
|
|
209
|
+
<h4 class="name" id="subjectEncoding"><span class="type-signature"></span>subjectEncoding<span
|
|
210
|
+
class="type-signature"> :string</span></h4>
|
|
211
|
+
</dt>
|
|
212
|
+
<dd>
|
|
213
|
+
<div class="description">
|
|
214
|
+
Property used for initializing "subjectEncoding" property of the
|
|
215
|
+
mail. It is the encoding of the subject. If this property is not set,
|
|
216
|
+
the default value is "UTF-8".
|
|
217
|
+
</div>
|
|
218
|
+
<h5>Type:</h5>
|
|
219
|
+
<ul>
|
|
220
|
+
<li>
|
|
221
|
+
<span class="param-type">string</span>
|
|
222
|
+
</li>
|
|
223
|
+
</ul>
|
|
224
|
+
<dl class="details">
|
|
225
|
+
</dl>
|
|
226
|
+
</dd>
|
|
227
|
+
<dt>
|
|
228
|
+
<h4 class="name" id="to"><span class="type-signature"></span>to<span
|
|
229
|
+
class="type-signature"> :array</span></h4>
|
|
230
|
+
</dt>
|
|
231
|
+
<dd>
|
|
232
|
+
<div class="description">
|
|
233
|
+
Property used for initializing "to" property of the mail. It is an
|
|
234
|
+
array containing objects with three properties. The first one is the
|
|
235
|
+
name of the person, the second one is the actual mail address, the
|
|
236
|
+
third one is the name encoding ex. {name: "John Doe", address:
|
|
237
|
+
"john.doe@sap.com", nameEncoding: "UTF-8"} or {name: "John Doe",
|
|
238
|
+
address: "john.doe@sap.com"} or {address: "john.doe@sap.com"} or just
|
|
239
|
+
"john.doe@sap.com". The name and the name encoding of the person can
|
|
240
|
+
be skipped, but the mail address cannot. If 'address' property is not
|
|
241
|
+
set, the mail won't be send at all.
|
|
242
|
+
</div>
|
|
243
|
+
<h5>Type:</h5>
|
|
244
|
+
<ul>
|
|
245
|
+
<li>
|
|
246
|
+
<span class="param-type">array</span>
|
|
247
|
+
</li>
|
|
248
|
+
</ul>
|
|
249
|
+
<dl class="details">
|
|
250
|
+
</dl>
|
|
251
|
+
</dd>
|
|
252
|
+
</dl>
|
|
253
|
+
<h3 class="subsection-title">Methods</h3>
|
|
254
|
+
<dl>
|
|
255
|
+
<dt>
|
|
256
|
+
<h4 class="name" id="send"><span class="type-signature">async </span>send<span class="signature">()</span><span
|
|
257
|
+
class="type-signature"> → {object}</span></h4>
|
|
258
|
+
</dt>
|
|
259
|
+
<dd>
|
|
260
|
+
<dl class="details">
|
|
261
|
+
</dl>
|
|
262
|
+
<h5>Throws:</h5>
|
|
263
|
+
<div class="param-desc">
|
|
264
|
+
Will
|
|
265
|
+
throw an error if information is missing or there is an
|
|
266
|
+
error during sending or setting the properties.
|
|
267
|
+
</div>
|
|
268
|
+
<h5>Returns:</h5>
|
|
269
|
+
<div class="param-desc">
|
|
270
|
+
The object contains two properties: 'messageId' and
|
|
271
|
+
'finalReply'. The property 'messageId' contains the
|
|
272
|
+
generated messageId and the property 'finalReply' contains
|
|
273
|
+
the last reply from the mail server.
|
|
274
|
+
</div>
|
|
275
|
+
<dl>
|
|
276
|
+
<dt>
|
|
277
|
+
Type
|
|
278
|
+
</dt>
|
|
279
|
+
<dd>
|
|
280
|
+
<span class="param-type">object</span>
|
|
281
|
+
</dd>
|
|
282
|
+
</dl>
|
|
283
|
+
<h5>Example</h5>
|
|
284
|
+
<pre class="prettyprint"><code>var mail = new $.net.Mail();
|
|
285
|
+
mail.subject = "About what the email is."
|
|
286
|
+
mail.subjectEncoding = "UTF-8";
|
|
287
|
+
mail.sender = {address: "from@sap.com"};
|
|
288
|
+
mail.to.push({name: "John Doe", address: "john.doe@sap.com", nameEncoding: "US-ASCII"});
|
|
289
|
+
mail.cc = [{name: "Cc1", address: "cc1@recepient.com"}, {address: "cc2@recepient.com"}];
|
|
290
|
+
mail.parts.push(new $.net.Mail.Part({type: $.net.Mail.Part.TYPE_TEXT, text: 'Text'}));
|
|
291
|
+
|
|
292
|
+
var returnValue;
|
|
293
|
+
var response = "";
|
|
294
|
+
|
|
295
|
+
try {
|
|
296
|
+
returnValue = <b>await </b>mail.send();
|
|
297
|
+
} catch(error) {
|
|
298
|
+
response = "Error occurred:" + error.message;
|
|
299
|
+
}
|
|
300
|
+
response = "MessageId = " + returnValue.messageId + ", final reply = " + returnValue.finalReply;
|
|
301
|
+
|
|
302
|
+
$.response.status = $.net.http.OK;
|
|
303
|
+
$.response.contentType = "text/html";
|
|
304
|
+
<b>await </b>$.response.setBody(response);</code></pre>
|
|
305
|
+
</dd>
|
|
306
|
+
</dl>
|
|
307
|
+
</article>
|
|
308
|
+
</section>
|
|
309
|
+
</div>
|
|
310
|
+
<nav>
|
|
311
|
+
<h2><a href="index.html">Index</a></h2>
|
|
312
|
+
<h3>Classes</h3>
|
|
313
|
+
<table>
|
|
314
|
+
<tr>
|
|
315
|
+
<td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
|
|
316
|
+
<td class="oblique">$.security</td>
|
|
317
|
+
</tr>
|
|
318
|
+
<tr>
|
|
319
|
+
<td><a href="$.Application.html">Application</a></td>
|
|
320
|
+
<td class="oblique">$</td>
|
|
321
|
+
</tr>
|
|
322
|
+
<tr>
|
|
323
|
+
<td><a href="$.web.Body.html">Body</a></td>
|
|
324
|
+
<td class="oblique">$.web</td>
|
|
325
|
+
</tr>
|
|
326
|
+
<tr>
|
|
327
|
+
<td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
|
|
328
|
+
<td class="oblique">$.db</td>
|
|
329
|
+
</tr>
|
|
330
|
+
<tr>
|
|
331
|
+
<td><a href="$.net.http.Client.html">Client</a></td>
|
|
332
|
+
<td class="oblique">$.net.http</td>
|
|
333
|
+
</tr>
|
|
334
|
+
<tr>
|
|
335
|
+
<td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
|
|
336
|
+
<td class="oblique">$.hdb</td>
|
|
337
|
+
</tr>
|
|
338
|
+
<tr>
|
|
339
|
+
<td><a href="$.db.Connection.html">Connection</a></td>
|
|
340
|
+
<td class="oblique">$.db</td>
|
|
341
|
+
</tr>
|
|
342
|
+
<tr>
|
|
343
|
+
<td><a href="$.hdb.Connection.html">Connection</a></td>
|
|
344
|
+
<td class="oblique">$.hdb</td>
|
|
345
|
+
</tr>
|
|
346
|
+
<tr>
|
|
347
|
+
<td><a href="$.net.Destination.html">Destination</a></td>
|
|
348
|
+
<td class="oblique">$.net</td>
|
|
349
|
+
</tr>
|
|
350
|
+
<tr>
|
|
351
|
+
<td><a href="$.net.http.Destination.html">Destination</a></td>
|
|
352
|
+
<td class="oblique">$.net.http</td>
|
|
353
|
+
</tr>
|
|
354
|
+
<tr>
|
|
355
|
+
<td><a href="$.web.EntityList.html">EntityList</a></td>
|
|
356
|
+
<td class="oblique">$.web</td>
|
|
357
|
+
</tr>
|
|
358
|
+
<tr>
|
|
359
|
+
<td><a href="$.jobs.Job.html">Job</a></td>
|
|
360
|
+
<td class="oblique">$.jobs</td>
|
|
361
|
+
</tr>
|
|
362
|
+
<tr>
|
|
363
|
+
<td><a href="$.jobs.JobLog.html">JobLog</a></td>
|
|
364
|
+
<td class="oblique">$.jobs</td>
|
|
365
|
+
</tr>
|
|
366
|
+
<tr>
|
|
367
|
+
<td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
|
|
368
|
+
<td class="oblique">$.jobs</td>
|
|
369
|
+
</tr>
|
|
370
|
+
<tr>
|
|
371
|
+
<td><a href="$.net.Mail.html">Mail</a></td>
|
|
372
|
+
<td class="oblique">$.net</td>
|
|
373
|
+
</tr>
|
|
374
|
+
<tr>
|
|
375
|
+
<td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
|
|
376
|
+
<td class="oblique">$.db</td>
|
|
377
|
+
</tr>
|
|
378
|
+
<tr>
|
|
379
|
+
<td><a href="$.net.Mail.Part.html">Part</a></td>
|
|
380
|
+
<td class="oblique">$.net.Mail</td>
|
|
381
|
+
</tr>
|
|
382
|
+
<tr>
|
|
383
|
+
<td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
|
|
384
|
+
<td class="oblique">$.db</td>
|
|
385
|
+
</tr>
|
|
386
|
+
<tr>
|
|
387
|
+
<td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
|
|
388
|
+
<td class="oblique">$.hdb</td>
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<td><a href="$.net.http.Request.html">Request</a></td>
|
|
392
|
+
<td class="oblique">$.net.http</td>
|
|
393
|
+
</tr>
|
|
394
|
+
<tr>
|
|
395
|
+
<td><a href="$.db.ResultSet.html">ResultSet</a></td>
|
|
396
|
+
<td class="oblique">$.db</td>
|
|
397
|
+
</tr>
|
|
398
|
+
<tr>
|
|
399
|
+
<td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
|
|
400
|
+
<td class="oblique">$.hdb</td>
|
|
401
|
+
</tr>
|
|
402
|
+
<tr>
|
|
403
|
+
<td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
|
|
404
|
+
<td class="oblique">$.hdb</td>
|
|
405
|
+
</tr>
|
|
406
|
+
<tr>
|
|
407
|
+
<td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
|
|
408
|
+
<td class="oblique">$.db</td>
|
|
409
|
+
</tr>
|
|
410
|
+
<tr>
|
|
411
|
+
<td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
|
|
412
|
+
<td class="oblique">$.hdb</td>
|
|
413
|
+
</tr>
|
|
414
|
+
<tr>
|
|
415
|
+
<td><a href="$.util.SAXParser.html">SAXParser</a></td>
|
|
416
|
+
<td class="oblique">$.util</td>
|
|
417
|
+
</tr>
|
|
418
|
+
<tr>
|
|
419
|
+
<td><a href="$.Session.html">Session</a></td>
|
|
420
|
+
<td class="oblique">$</td>
|
|
421
|
+
</tr>
|
|
422
|
+
<tr>
|
|
423
|
+
<td><a href="$.text.analysis.Session.html">Session</a></td>
|
|
424
|
+
<td class="oblique">$.text.analysis</td>
|
|
425
|
+
</tr>
|
|
426
|
+
<tr>
|
|
427
|
+
<td><a href="$.text.mining.Session.html">Session</a></td>
|
|
428
|
+
<td class="oblique">$.text.mining</td>
|
|
429
|
+
</tr>
|
|
430
|
+
<tr>
|
|
431
|
+
<td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
|
|
432
|
+
<td class="oblique">$.net</td>
|
|
433
|
+
</tr>
|
|
434
|
+
<tr>
|
|
435
|
+
<td><a href="$.db.SQLException.html">SQLException</a></td>
|
|
436
|
+
<td class="oblique">$.db</td>
|
|
437
|
+
</tr>
|
|
438
|
+
<tr>
|
|
439
|
+
<td><a href="$.hdb.SQLException.html">SQLException</a></td>
|
|
440
|
+
<td class="oblique">$.hdb</td>
|
|
441
|
+
</tr>
|
|
442
|
+
<tr>
|
|
443
|
+
<td><a href="$.security.Store.html">Store</a></td>
|
|
444
|
+
<td class="oblique">$.security</td>
|
|
445
|
+
</tr>
|
|
446
|
+
<tr>
|
|
447
|
+
<td><a href="$.web.TupelList.html">TupelList</a></td>
|
|
448
|
+
<td class="oblique">$.web</td>
|
|
449
|
+
</tr>
|
|
450
|
+
<tr>
|
|
451
|
+
<td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
|
|
452
|
+
<td class="oblique">$.web</td>
|
|
453
|
+
</tr>
|
|
454
|
+
<tr>
|
|
455
|
+
<td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
|
|
456
|
+
<td class="oblique">$.web</td>
|
|
457
|
+
</tr>
|
|
458
|
+
<tr>
|
|
459
|
+
<td><a href="$.web.WebRequest.html">WebRequest</a></td>
|
|
460
|
+
<td class="oblique">$.web</td>
|
|
461
|
+
</tr>
|
|
462
|
+
<tr>
|
|
463
|
+
<td><a href="$.web.WebResponse.html">WebResponse</a></td>
|
|
464
|
+
<td class="oblique">$.web</td>
|
|
465
|
+
</tr>
|
|
466
|
+
<tr>
|
|
467
|
+
<td><a href="$.util.Zip.html">Zip</a></td>
|
|
468
|
+
<td class="oblique">$.util</td>
|
|
469
|
+
</tr>
|
|
470
|
+
</table>
|
|
471
|
+
<h3>Namespaces</h3>
|
|
472
|
+
<ul>
|
|
473
|
+
<li><a href="$.html"><span class="oblique"></span>$</a></li>
|
|
474
|
+
<li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
|
|
475
|
+
<li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
|
|
476
|
+
<li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
|
|
477
|
+
<li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
|
|
478
|
+
<li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
|
|
479
|
+
<li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
|
|
480
|
+
<li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
|
|
481
|
+
<li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
|
|
482
|
+
<li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
|
|
483
|
+
<li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
|
|
484
|
+
<li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
|
|
485
|
+
<li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
|
|
486
|
+
<li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
|
|
487
|
+
<li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
|
|
488
|
+
<li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
|
|
489
|
+
<li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
|
|
490
|
+
<li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
|
|
491
|
+
</ul>
|
|
492
|
+
</nav>
|
|
493
|
+
<br clear="both">
|
|
494
|
+
<footer>
|
|
495
|
+
<a href="Copyright-SAP.html">Copyright</a>
|
|
496
|
+
&
|
|
497
|
+
<a href="Disclaimer-SAP.html">Disclaimer</a>
|
|
498
|
+
</footer>
|
|
499
|
+
<script>prettyPrint();</script>
|
|
500
|
+
<script src="scripts/linenumber.js"></script>
|
|
501
|
+
|
|
502
|
+
</body>
|
|
503
|
+
|
|
504
|
+
</html>
|