Commit 29be4c46 authored by Leon's avatar Leon

upload.

parent 8d11f9b7
dirty.js dirty.js
**/node_modules/ **/node_modules/
\ No newline at end of file src/config.js
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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment