Skip to content

Instantly share code, notes, and snippets.

Manish manish-in-java

  • Gurgaon, India
View GitHub Profile
@manish-in-java
manish-in-java / EmailService.java
Created Mar 8, 2019
SMTP Connection Pooling with Spring
View EmailService.java
import javax.mail.internet.MimeMessage;
import org.nlab.smtp.pool.SmtpConnectionPool;
import org.nlab.smtp.transport.connection.ClosableSmtpConnection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class EmailService {
You can’t perform that action at this time.