'use strict';
var request = require('request')
  , logger = require('./logger')
;
module.exports = function api(mail, smtp, next) {
  logger.verbose('Send post request to [' + mail.api + ']');

  request.post(
    {
      url: mail.api
      , formData: {
        mail: JSON.stringify(mail.json)
      }
    }
    , function(error, response) {
      if (error) {
        logger.error(error);
      }
      logger.verbose(
        'Mail pushed to [' + mail.api + '] ' +
        'with response [' + response.statusCode + ']'
      );
      next();
    }
  );
};

@@ -142,17 +142,27 @@
 verbose(
-'
+%0A    '%5B%25s%5D 
 Send pos
@@ -193,16 +193,41 @@
 pi + '%5D'
+%0A    , smtp.session.id%0A  
 );%0A%0A  re
@@ -459,16 +459,21 @@
        '
+%5B%25s%5D 
 Mail pus
@@ -552,24 +552,50 @@
 sCode + '%5D'%0A
+        , smtp.session.id%0A
       );%0A   

Add smtp.session.id in api middleware logs