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 @@ -

1.html

\ No newline at end of file diff --git a/test/2.html b/test/2.html deleted file mode 100644 index f6ce104..0000000 --- a/test/2.html +++ /dev/null @@ -1 +0,0 @@ -

2.html

\ No newline at end of file diff --git a/test/i-love-you.html b/test/i-love-you.html deleted file mode 100644 index 86cc2f1..0000000 --- a/test/i-love-you.html +++ /dev/null @@ -1 +0,0 @@ -

I love you!

\ No newline at end of file diff --git a/test/message.html b/test/message.html new file mode 100644 index 0000000..41450a2 --- /dev/null +++ b/test/message.html @@ -0,0 +1,11 @@ + + + + + + Message + + +

This email was sent with gulp-mail!

+ + \ No newline at end of file