-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailin/test/utils/server.js outdated? #25
Comments
Right it might not be compatible with the current express version. I'll have a look at it. Btw, the mailin.io demo is down until tomorrow for maintenance, just in case you tried it. :-) |
Indeed I did try. I have tried the demo earlier last week though ;) Loved it!
At this point I cant figure out what's the trouble. I've tried stuff, but as I said I'm not too sturdy in node.js yet ;) |
That's because this example script uses the old express API which has been deprecated with express 4. I'll update this example. By this time, you can follow an express tutorial, it'll really help you getting started and it really worth it if you want to invest in node! |
Thanks! I am doing some tutorials now. ;-) |
Hello again Flolagale :) |
If you use mailin inside a node app (I mean not from the command line), there is an option to disable sender validation. Here comes the gist of it: var mailin = require('mailin');
mailin.start({
port: 25,
webhook: 'http://yourdomain.com/mailin-webhook',
smtpOptions: {
disableDNSValidation: true
}
}); There is currently no option to do this from the command line. I'd recommend putting thiis gist in a file and running it with forever:
The other option is that you submit a pull request adding this option to the mailin cli ;-). |
This is perfect! I need to learn to read the docs better before I ask! Thanks anyway! Consider this issue solved ;) |
No worries, this one is not really documented ;-) |
Just made a pull request tackling this issue: |
Hello there and thanks for sharing mailin!
I am quite new to node.js, but I think the server.js script is outdated for current version of the Express API?
I would like to test the webhook using this code :) Any help is appreciated!
The text was updated successfully, but these errors were encountered: