Comments (5)
Work has begun on this in #1376
from smtp4dev.
@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.
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.
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.
This is merged and available. To get started, click ... button in the header and then "API".
from smtp4dev.
Related Issues (20)
- Feature - Improve error/experience if port binding failed
- Feature: Simple static credential settings for SMTP/IMAP. HOT 1
- [Feature] IPv6 support HOT 1
- [Bug] Settings dialog shows 1 for IMAP port, when it's set to 0.
- [Bug] Plain text and HTML/plain preview tab control is showing incorrectly.
- [Bug] Some settings if set by command line have no effect when edited in the UI
- [Bug] Re-introduce 'allow any credentials' mode for SMTP HOT 2
- Don't allow basic authentication (web, API) if users list is empty HOT 1
- NullReferenceException during Auto-Relay HOT 4
- [Feature] - "Can I use" HTML/CSS client compatibility report
- [Chore] Move to Vite to speed up the build and follow modern Vue3 standards.
- [Feature] HTML validation
- Connecting.... Error: No Connection with that ID: Status code '404' HOT 7
- v3 docker image version bump note HOT 1
- IMAP not working with GNOME Evolution client HOT 4
- Memory leak in newer versions HOT 4
- FOREIGN KEY constraint failed when deleting or automatic clean up of session HOT 2
- Docker healthckeck mechanism
- login auth not properly verify? HOT 2
- IMAP Search incorrectly returns UID instead of SeqNum
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smtp4dev.