Giter VIP home page Giter VIP logo

Comments (10)

travispessetto avatar travispessetto commented on September 26, 2024 1

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.

travispessetto avatar travispessetto commented on September 26, 2024

I have thought about a couple of things:

  1. Create an inbox per to address received which will be able to be accessed in the GUI
  2. Have a search filter for the to addresses

Please provide more information of what exactly you are looking for.

from origamismtp.

javydreamercsw avatar javydreamercsw commented on September 26, 2024

Basically I'm looking into this for unit tests. I would like to:

  1. Set up the server.
  2. Create one or more accounts (email, username, password).
  3. From the email source (i.e. application being tested) send emails.
  4. Retrieve emails from the user's inbox in order to check outcome (acceptance criteria of the unit test).

from origamismtp.

travispessetto avatar travispessetto commented on September 26, 2024

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.

javydreamercsw avatar javydreamercsw commented on September 26, 2024

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.

travispessetto avatar travispessetto commented on September 26, 2024

Are you just looking for Java or are you looking for compatibility with a range of languages?

from origamismtp.

javydreamercsw avatar javydreamercsw commented on September 26, 2024

I'm only interested in Java right now.

from origamismtp.

travispessetto avatar travispessetto commented on September 26, 2024

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.

travispessetto avatar travispessetto commented on September 26, 2024

I made the basic test API a little easier to use. See this test for an example.

from origamismtp.

travispessetto avatar travispessetto commented on September 26, 2024

At this time separate user accounts are not in the goal of this project.

from origamismtp.

Related Issues (12)

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.