Comments (10)
Alright, I will try writing a Java library that wraps Origami SMTP for testing. I am not sure when I will have enough time to write it but will try to get it done within the next couple of weeks.
from origamismtp.
I have thought about a couple of things:
- Create an inbox per to address received which will be able to be accessed in the GUI
- Have a search filter for the to addresses
Please provide more information of what exactly you are looking for.
from origamismtp.
Basically I'm looking into this for unit tests. I would like to:
- Set up the server.
- Create one or more accounts (email, username, password).
- From the email source (i.e. application being tested) send emails.
- Retrieve emails from the user's inbox in order to check outcome (acceptance criteria of the unit test).
from origamismtp.
This is interesting and I need to think about it some more. In order to make a more informed decision I need to know if you will be looking for bounced email messages. The current setup is designed to be catch all and I anticipated keeping it that way.
There is plans for IMAP support that should allow more applications to be unit tested. While it is a pain in the butt you could probably get some unit testing from the system if you are using Java. You would need a copy of the jar file, a RunListener, and a few threads (similar to how the GUI works).
from origamismtp.
Right now I'm not looking for bounced emails. I just want to make sure the email my system sent was received on the different formats, plain SMTP, TLS, SSL, etc.
from origamismtp.
Are you just looking for Java or are you looking for compatibility with a range of languages?
from origamismtp.
I'm only interested in Java right now.
from origamismtp.
While it is not the best I implemented a basic library that will let you get the newest message from the server and compare any of its fields with the value you are expecting. See this test for an example.
from origamismtp.
I made the basic test API a little easier to use. See this test for an example.
from origamismtp.
At this time separate user accounts are not in the goal of this project.
from origamismtp.
Related Issues (12)
- Publish on Maven repository [$10] HOT 12
- [HELP] TLS startup failed (connect(): error:0407008A HOT 2
- Opening the GUI and app HOT 1
- Email Details Not Appearing HOT 1
- Question: Does this require Java to run? HOT 1
- AppImage HOT 16
- Comparison of other fake mailservers is not up to date HOT 1
- Setup Instructions For Linux Users HOT 2
- Using removed Java code HOT 1
- GUIDE : Setup on Manjaro Linux (or Arch) HOT 2
- Some mailers may require a Revocation List HOT 3
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 origamismtp.