fritx / gulp-mail Goto Github PK
View Code? Open in Web Editor NEWSend mails with gulp
Home Page: https://www.npmjs.com/package/gulp-mail
Send mails with gulp
Home Page: https://www.npmjs.com/package/gulp-mail
How can i specify a file I would like to test from the the command line?
The team at Gulp have officially ended support for gulp-util
.
Replacing this dependency should be an easy fix. I could make a pull request, if you'd like.
Hi,
When I run 'gulp mail', it appears to complete all its tasks, but hangs. I have to CTRL+C to get back to the command prompt. How do I get it to finish properly? Also, mail is send after CTRL+C is hit.
I'm using following settings as below, and same task:
var mail = require('gulp-mail')
var smtpInfo = {
host: 'host',
secureConnection: false,
port: 25
}
gulp.task('mail', function() {
return gulp.src('./mails/i-love-you.html')
.pipe(mail({
subject: 'Surprise!?',
to: [
'[email protected]'
],
from: 'Foo <[email protected]>',
smtp: smtpInfo
}))
})
Current workaround for this issue I've implemented:
gulp.task('mail', function() {
return gulp.src('./mails/i-love-you.html')
.pipe(mail({
subject: 'Surprise!?',
to: [
'[email protected]'
],
from: 'Foo <[email protected]>',
smtp: smtpInfo
}))
.once('error', function () {
process.exit(1);
})
.once('end', function () {
process.exit();
});
})
Thanks,
Adam
Subject is self explanatory I believe it would be nice feature and we could standardise this module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.