Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; April 4, 2022 by IT Nursery Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;