Thanks
Al
The code:
mailSession = Session.getDefaultInstance( props );
MimeMessage mimeMessage = new MimeMessage( mailSession );
mimeMessage.setText( message );
InternetAddress fromAddr = new InternetAddress( fromEmailAddr,
fromName );
mimeMessage.setFrom( fromAddr );
mimeMessage.addRecipients( Message.RecipientType.TO,
toEmailAddr );
mimeMessage.setSubject( subject );
Transport.send( mimeMessage );
The Exception:
javax.mail.MessagingException: Could not connect to SMTP host:
pop.bigalsoftware.com, port: 25, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1201)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at javax.mail.Transport.send0(Transport.java:150)
at javax.mail.Transport.send(Transport.java:80)
at com.bigalsoftware.util.MailUtil.sendMail(MailUtil.java:75)
> The Exception:
>
> javax.mail.MessagingException: Could not connect to SMTP host:
> pop.bigalsoftware.com, port: 25, response: -1
Do a mimeMessage.saveChanges() for sending. Put javamail in debug (add
key of "debug", value "true" to your Properties) and post the log here
if you still have not figured it out.
Regards,
Gary