Commit 8201aa56 authored by Andris Reinman's avatar Andris Reinman
Browse files

v2.2.0-rc.11

parent b21b0382
# Changelog
## 2.2.0-rc.11 2016-02-16
* removed the need to use clone dependency
* expose `verify` as a Promise
## 2.2.0-rc.10 2016-02-16
* yet another supdep bump to get proxied sockets to work
......
Include the following information with your issue:
1) Nodemailer version you are having problems with (eg. v1.3.7)
2) Node.js version you are using (run `node -v` to see it, eg v5.5.0)
3) Your operating system (eg. Windows 10, Ubuntu 14.04 etc.)
4) If possible, include a minimal test case that can be used to verify your issue (link to a gist would be great!)
If you are having problems with Gmail, then make sure you have
read this post before filing your issue: http://nodemailer.com/using-gmail/
......@@ -304,7 +304,7 @@ See the list of all supported services [here](https://github.com/andris9/nodemai
## Verify SMTP connection configuration
You can verify your SMTP configuration with `verify(callback)` call. If it returns an error, then something is not correct, otherwise the server is ready to accept messages.
You can verify your SMTP configuration with `verify(callback)` call (also works as a Promise). If it returns an error, then something is not correct, otherwise the server is ready to accept messages.
```javascript
// verify connection configuration
......
{
"name": "nodemailer",
"version": "2.2.0-rc.10",
"version": "2.2.0-rc.11",
"description": "Easy as cake e-mail sending from your Node.js applications",
"main": "lib/nodemailer.js",
"scripts": {
......@@ -28,10 +28,10 @@
"dependencies": {
"libmime": "2.0.2",
"mailcomposer": "3.6.2",
"nodemailer-direct-transport": "3.0.4",
"nodemailer-direct-transport": "3.0.5",
"nodemailer-shared": "1.0.4",
"nodemailer-smtp-pool": "2.3.2",
"nodemailer-smtp-transport": "2.2.2"
"nodemailer-smtp-pool": "2.5.0",
"nodemailer-smtp-transport": "2.4.0"
},
"devDependencies": {
"amqp": "^0.2.4",
......
......@@ -246,10 +246,12 @@ describe('Nodemailer integration tests', function () {
logger: false
});
nm.verify(function (err, success) {
expect(err).to.not.exist;
nm.verify().then(function (success) {
expect(success).to.be.true;
done();
}).catch(function (err) {
expect(err).to.not.exist;
done();
});
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment