emai.js 598 Bytes
Newer Older
Scott Sun's avatar
Scott Sun committed
1 2
var mail = require('topsin.mail');
var error = require('topsin.error');
Scott Sun's avatar
Scott Sun committed
3
var err = mail.sendMail({
Scott Sun's avatar
Scott Sun committed
4 5
    // host:'smtp.exmail.qq.com',
    // host:'cshas.ats.net',
Scott Sun's avatar
Scott Sun committed
6 7
    host:"10.90.79.37",
    port:"25",
Scott Sun's avatar
Scott Sun committed
8
    // auth_method:mail.AuthMethod.LOGIN,
Scott Sun's avatar
Scott Sun committed
9
    connection_type:mail.ConnectionType.TCP,
Scott Sun's avatar
Scott Sun committed
10 11 12
    // user: "ferre.zhang@cn.ats.net",
    // user:'scott.sun@topibd.com',
    // password:'159482673Sun',
Scott Sun's avatar
Scott Sun committed
13 14 15 16 17 18 19
    to:'scott.sun@topibd.com',
    subject:'customer_code / job_name reading is ready!',
    content:'customer_code / job_name reading is ready!'
});

if (err.isValid()) {
    print(err.text());
Scott Sun's avatar
Scott Sun committed
20 21 22 23
}