subethasmtp | SubEtha SMTP is a Java library for receiving SMTP mail | Email library
kandi X-RAY | subethasmtp Summary
kandi X-RAY | subethasmtp Summary
SubEtha SMTP is a Java library which allows your application to receive SMTP mail with a simple, easy-to-understand API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Decodes a base64 encoded byte array
- Main loop
- Read a line of text
- Runs the command loop
- Decodes a base64 encoded char array
- Executes a command from SMTP
- Extracts the email address from the arguments
- Checks if the given string is a valid email address
- Decodes a base64 encoded string
- Compares two help messages
- Delivers the message from the specified stream
- Reads a single byte
- Returns a hashCode of the arguments
- Execute a command
- Returns an input stream to the output stream
- Writes an array of bytes
- Builds the output string
- Write data end
- Closes this output stream
- Starts the SMTP server
- Executes a command
- Execute a command on the server
- Execute command
- Send a command
- Execute a command
- Connects to the specified SMTP server
subethasmtp Key Features
subethasmtp Examples and Code Snippets
Community Discussions
Trending Discussions on subethasmtp
QUESTION
SubEthaSMTP server running fine on port 25001. After a successful authentication from my client code to Subethasmtp server i am having this error message org.subethamail.smtp.server.Session: Unexpected error in the SMTP handler thread java.lang.NoClassDefFoundError: jakarta/mail/internet/AddressException
This is my SMTPServerConfig class
...ANSWER
Answered 2022-Feb-27 at 09:24Spring Boot 2.6 and earlier still use the javax.mail
namespace for JakartaMail (formerly JavaMail), while your SubEtha SMTP version seems to expect the jakarta.mail
namespace. Spring Boot explicitly specifies versions of the JakartaMail package, see Spring Boot Dependency Versions and search for jakarta.mail. For Spring Boot 2.6.4, it lists version 1.6.7, and that version is still based on the javax.mail
namespace.
You need to downgrade SubEtha SMTP to a version that still uses the javax.mail
namespace of JakartaMail/JavaMail, and wait for Spring Boot 3 before using a version that needs the jakarta.mail
namespace.
In theory, you can also set the Maven property jakarta-mail.version
to 2.0.1, but this could cause problems in other parts of Spring Boot, so I do not recommend that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install subethasmtp
You can use subethasmtp like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the subethasmtp component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page