Hi,
I have a session bean and it is trying to send an email using Java's email
using Transport.send().
But I am getting the following exception:
*javax.mail.MessagingException: java.net.SocketTimeoutException: Read timed
out at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.receiveLine(SMTPConnection.java:760)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.receiveLine(SMTPConnection.java:682)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.getReply(SMTPConnection.java:692)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.sendCommand(SMTPConnection.java:655)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.sendQuit(SMTPConnection.java:571)
at
org.apache.geronimo.javamail.transport.smtp.SMTPConnection.close(SMTPConnection.java:181)
at
org.apache.geronimo.javamail.transport.smtp.SMTPTransport.close(SMTPTransport.java:503)
at javax.mail.Transport.send(Transport.java:144) at
javax.mail.Transport.send(Transport.java:48) at
com.netgiro.utils.mail.NgMailSenderImpl.sendMessageUsingJavaMail(NgMailSenderImpl.java:228)
at
com.netgiro.utils.mail.NgMailSenderImpl.sendMessageNow(NgMailSenderImpl.java:196)*
Any suggestions about how to send email in OpenEJB