Search code examples
javaemail-client

Is it possible to send email without JDK?


I'm aware about JDK implementation of email sending (via SMTP), but I'm looking for something custom, which would not use JDK. Such libraries exist? I need it for better testability of my app.


Solution

  • Maybe use apache commons exec to run something like:

    echo "hello" | mail -s subject user@example.com