diff --git a/gulpfile.js b/gulpfile.js index 2900b47..8ddfcd7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,16 +4,15 @@ var gulp = require('gulp') gulp.task('test', function(){ // send mail - return gulp.src([ - './test/i-love-you.html', - './test/1.html', - './test/2.html' - ]) - .pipe(mail({ + return gulp + .src(['./test/message.html']) + .pipe( + mail({ to: mailInfo.to, from: mailInfo.from, - smtp: mailInfo.smtp - })) + smtp: mailInfo.smtp, + }) + ) // blocked after sending // becase transporter remained working }) diff --git a/test/1.html b/test/1.html deleted file mode 100644 index bf8e5da..0000000 --- a/test/1.html +++ /dev/null @@ -1 +0,0 @@ -