Code Monkey home page Code Monkey logo

Comments (3)

bbyars avatar bbyars commented on May 16, 2024

Thanks - will look into this soon.

from mountebank.

bbyars avatar bbyars commented on May 16, 2024

Reproduced by creating a .NET client connecting from a different machine. Set the debug option on simplesmtp, and got the following log.

BB9145:mountebank:% bin/mb --loglevel debug <master ✗>
info: [mb:2525] mountebank v1.0.0 now taking orders - point your browser to http://localhost:2525 for help
info: [mb:2525] POST /imposters
debug: [mb:2525] 192.168.35.129:4270 => {"protocol":"smtp","port":3000}
info: [smtp:3000] Open for business...
CONNECTION FROM 192.168.35.129
Connection from 192.168.35.129
OUT: "220 BB9145.local ESMTP node.js simplesmtp"
debug: [smtp:3000] 192.168.35.129:4271 ESTABLISHED
COMMAND: EHLO WIN-1H1KP2T2PHK
OUT: "250-BB9145.local at your service, [192.168.35.129]
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 STARTTLS"
COMMAND: MAIL FROM:[email protected]
OUT: "250 2.1.0 Ok"
COMMAND: RCPT TO:[email protected]
OUT: "250 2.1.0 Ok"
COMMAND: DATA
OUT: "354 End data with ."
info: [smtp:3000] 192.168.35.129 => Envelope from: [email protected] to: ["[email protected]"]
DATA: MIME-Version: 1.0
From: [email protected]
To: [email protected]
Date: 27 Apr 2014 07:55:02 -0600
Subject: Thank you for your order!
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

DATA:
Hello Customer, Thank you for your order from company.com

debug: [smtp:3000] 192.168.35.129 => {"requestFrom":"192.168.35.129","envelopeFrom":"[email protected]","envelopeTo":["[email protected]"],"from":{"address":"[email protected]","name":""},"to":[{"address":"[email protected]","name":""}],"cc":[],"bcc":[],"subject":"Thank you for your order!","priority":"normal","references":[],"inReplyTo":[],"text":"Hello Customer, Thank you for your order from company.com\n","html":"","attachments":[]}
OUT: "250 2.0.0 Ok: queued as ae7de59638c87450fd4a"
info: [mb:2525] DELETE /imposters/3000
OUT: "421 4.4.2 BB9145.local Error: client error"
error: [smtp:3000] 192.168.35.129:4271 transmission error X=> {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"}
debug: [smtp:3000] 192.168.35.129:4271 CLOSED

from mountebank.

moodmosaic avatar moodmosaic commented on May 16, 2024

FWIW, when I debug the code (e.g. with node-inspector) sometimes the error doesn't appear.

from mountebank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.