Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
T
topjs3-demos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leon Li
topjs3-demos
Commits
29be4c46
Commit
29be4c46
authored
Dec 05, 2019
by
Leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload.
parent
8d11f9b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
.gitignore
.gitignore
+2
-1
send-mail-demo.js
src/send-mail-demo.js
+9
-5
No files found.
.gitignore
View file @
29be4c46
dirty.js
dirty.js
**/node_modules/
**/node_modules/
\ No newline at end of file
src/config.js
src/send-mail-demo.js
View file @
29be4c46
var
mail
=
require
(
'topsin.mail'
);
var
mail
=
require
(
'topsin.mail'
);
var
error
=
require
(
'topsin.error'
);
var
error
=
require
(
'topsin.error'
);
var
config
=
require
(
"./config"
);
var
err
=
mail
.
sendMail
({
var
err
=
mail
.
sendMail
({
host
:
'smtp.exmail.qq.com'
,
host
:
'10.90.78.10'
,
port
:
443
,
auth_method
:
mail
.
AuthMethod
.
LOGIN
,
auth_method
:
mail
.
AuthMethod
.
LOGIN
,
connection_type
:
mail
.
ConnectionType
.
TCP
,
connection_type
:
mail
.
ConnectionType
.
SSL
,
from
:
'
leon.li@topibd.com
'
,
from
:
'
SLPLaserCtable.CCQ@cn.ats.net
'
,
password
:
'mailpassword'
,
password
:
config
.
mail_password
,
to
:
'leon.li@topibd.com'
,
to
:
'leon.li@topibd.com'
,
subject
:
'topjs mail test title'
,
subject
:
'topjs mail test title'
,
content
:
'topjs mail test body18'
content
:
'topjs mail test body18'
,
connection_timeout
:
5000
,
response_timeout
:
20000
});
});
if
(
err
.
isValid
())
{
if
(
err
.
isValid
())
{
print
(
err
.
text
());
print
(
err
.
text
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment