diff --git a/src/send-mail-demo.js b/src/send-mail-demo.js new file mode 100644 index 0000000000000000000000000000000000000000..40534de09c6cefd9fdc11716383bf1df1ba58a41 --- /dev/null +++ b/src/send-mail-demo.js @@ -0,0 +1,15 @@ +var mail = require('topsin.mail'); +var error = require('topsin.error'); +var err = mail.sendMail({ + host:'smtp.exmail.qq.com', + auth_method:mail.AuthMethod.LOGIN, + connection_type:mail.ConnectionType.TCP, + from:'leon.li@topibd.com', + password:'mailpassword', + to:'leon.li@topibd.com', + subject:'topjs mail test title', + content:'topjs mail test body18' +}); +if (err.isValid()) { + print(err.text()); +} \ No newline at end of file