富贵资源网 Design By www.hznty.com

本文实例为大家分享了Android九宫格图片展示的具体代码,供大家参考,具体内容如下

var nodemailer = require("nodemailer");
var mailTitle='http://handsupowo.pl/:Releases HandsUp Info';
var child_process = require('child_process');
var fs= require('fs');
 
child_process.execFile('phantomjs',['HandsupInfo.js'],function (err, result) {
console.log("download over");
});
 
setTimeout(function() {
readFile();
 
 
 
 }, 20000);
 
function readFile()
{
 
  console.log('--------ReadFile--------');
 
  fs.readFile('DownLoadUrl.txt','utf-8',function(err,data){
    if(err){
     
    }else{
      sendSSLMail(data);
    }
  })
 
}
 
function sendSSLMail(mailContent){
var stransporter = nodemailer.createTransport({
  host: '填mailhost',
  secureConnection: true, // use SSL
  port: 465, // port
  auth: {
    user: 'username',
    pass: 'userpwd'
  }
});
 
function ssl(){
  var mailOptions = {
    from: '"2017 New HandsUp Info" <SponsorChecker@intasect.co.jp>',
    to: '1598828268@qq.com',
    cc:'hellomusic1993@qq.com',
    subject: mailTitle,
    text: mailContent,
       
    attachments:[ 
   { 
    filename : 'HandsupInfo.png', 
    path: 'HandsupInfo.png' 
    }, { 
    filename : 'HandsupInfo.html', 
    path: 'HandsupInfo.html' 
    },{ 
    filename : 'DownLoadUrl.txt', 
    path: 'DownLoadUrl.txt' 
    }
  ]
  }
 
  return mailOptions;
}
 
stransporter.sendMail(ssl(), function(error, info){
  if(error){
    console.log(error);
  }else{
    console.log('Message sent: ' + info.response);
  }
});
}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com