Home » SMTP

Tag Archives: SMTP

Log4j Email Configuration Example

It is always better to get notified about any major exceptions that occur in an application instead of manually going through huge logs to find the probable exception messages. In this tutorial, I will show you how to implement an out of box Log4j appender (called as SMTPAppender) to send email alerts. 1. Introduction Printing messages to the console is ...

Read More »

Spring E-Mail Support – GMail SMTP Server Example

This is an example of Spring E-mail support via the Gmail SMTP Server. The Spring Framework provides a utility library for sending emails. The org.springframework.mail package contains all classes that provide the basic email support of the Spring Framework. Here we use its basic interface for sending emails, that is the MailSender interface. We are also making use of the ...

Read More »