Tag Archives: Email Template

Sending Email with Spring MVC Using Template

This tutorial provides a sample spring MVC application that allows user sending an e-mail message. In this tutorial, you are supposed to familiar with Java EE development as well as developing Spring MVC-based applications. Spring Framework’s Support for E-mail Based on JavaMail, Spring framework provides high-level abstraction API which greatly simplifies e-mail sending process. Let’s take a brief look at this API in the following class diagram: To send e-mail messages, we can use an implementation of interface MailSender – the JavaMailSenderImpl class which is built upon on JavaMail. It’s convenient to configure this implementation as a bean in Spring’s context: Dependencies(pom.xml) The Mail Template File Name: verifyEmail.vm File Location: classpath: /mails/verifyEmail.vm (You can change this in configuration file) The…

Continue Reading

Zend Framework 2: Send Html Mail with Simple Template

Yesterday, I spent several hours solving this problem. In Laravel Framework, you can do as following: Quite easy, isn't it? However, it's quite tedious using Zend Framework. Step 1: Create Email Template First of all, you need to create a template for mail in views folder, such as /view/mails/reset.phtml. Step 2: Complete Sending Email Function

Continue Reading
Contact Us
  • Room 614, Zonghe Building, Harbin Institute of Technology
  • cshzxie [at] gmail.com