Common module of sending email program

Ø Sample JSP Program

1. It supports two interfaces in order to sending email program. First is "Map" interface type. Second is "Bean" Interface Type.
You can see the sample programs(JSP and Controller).

2. If you want to send email in above screen, you must enter "Subject", "Contents", "Receiver Email". Other column is optional input value.
If you not enter value of columns, it will fill default value by system setting.

              3. When finish process of sending email, you can receive email like below image.
                    

Ø About Mail Template

1. Whenever you sending email, we can use mail template file.

2. In order to use mail template, please use this class. "com.icompia.wisec.common.mail.web.MailTemplate".

3. If you want to use mail template, you must make template file.
If you have not mail template, it'll be used by system default mail template.

4. You can see sample program about describing how to use mail template.

Service Package
com.icompia.wisec.common.mail.service.WiseUtilService;

How to autowired ?
@Autowired
private MailTemplate mailTemplate;

How to coding?
mailTemplate.getMailTemplate(String templateFileName, String subject, String contents, String companyName, String destUrl)

Ø The core of sending mail program

Service Package
com.icompia.wisec.common.mail.service.WiseMailService;

How to autowired ?
@Autowired
private WiseMailService wiseMailService;

How to coding?
WiseMailService
SendMail (Map<String, String> param)
or
WiseMailService
SendMail (WiseMailVo param)