Coder Social home page Coder Social logo

Comments (5)

rnwood avatar rnwood commented on June 11, 2024 2

Work has begun on this in #1376

from smtp4dev.

ahmed2m avatar ahmed2m commented on June 11, 2024 1

@rnwood It's just more convenient when writing the tests locally rather within actual test suite, we're testing email contents not the functionality of an smtp itself so it would just be easier to use the same smtp4dev docker service that is used in development for testing using the API, it's language/backend agnostic solution.
It's both easier since we can see the emails being sent during tests so that we can inspect them etc.. & we can screenshot the email contents in an end to end test.

And I think the project is mature enough now for an API documentation, if for any reason you'd be changing things drastically it would be a major version change.

Would appreciate this small change since there are some useful features here I'm missing in the other project I mentioned above like the unread indicator and socket connection.

from smtp4dev.

ahmed2m avatar ahmed2m commented on June 11, 2024

I was in the exact same situation and found this: https://github.com/gessnerfl/fake-smtp-server
which is actually maintained to date and has an interface and swagger API documentation.

from smtp4dev.

rnwood avatar rnwood commented on June 11, 2024

I am open to this in future, but have resisted making the API public until now because I wanted to be able to change it freely without having to think about versioning.

Instead of hosting a complete application like SMTP4DEV, you might consider using an SMTP server component directly in your automated tests. SMTP4DEV uses Rnwood.SmtpServer and if you use .NET you can use this:

Example here:
https://github.com/rnwood/smtpserver/blob/master/Rnwood.SmtpServer.Tests/ClientTests.cs

This should be much simpler and more robust than starting up an app in separate process. Similar libraries exist in other ecosystems if you're not on .NET.

from smtp4dev.

rnwood avatar rnwood commented on June 11, 2024

This is merged and available. To get started, click ... button in the header and then "API".

from smtp4dev.

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.