Options to send different types of emails were moved to the home page.

This commit is contained in:
oreva 2016-10-06 12:53:00 +03:00
parent 2f4ac59c54
commit 309e1a2da7
3 changed files with 23 additions and 7 deletions

View File

@ -31,7 +31,7 @@ public class MailController {
@Qualifier("templateSimpleMessage")
public SimpleMailMessage template;
@RequestMapping(value = "/send", method = RequestMethod.GET)
@RequestMapping(value = {"/send", "/sendTemplate", "/sendAttachment"}, method = RequestMethod.GET)
public String createMail(Model model) {
model.addAttribute("mailObject", new MailObject());
return "mail/send";

View File

@ -15,9 +15,27 @@
<body>
<div>
<div>
<h4>Send Email</h4>
<form action="mail/send" method="get">
<input type="submit" value="Send Email">
<h4>Select any of the options below to send sample email:</h4>
<form method="get" style="width: 200px;">
<fieldset style="border: none; padding-left: 0px; padding-top: 0px">
<table>
<tr>
<td>
<input type="submit" formaction="mail/send" value="Send Simple Email">
</td>
</tr>
<tr>
<td>
<input type="submit" formaction="mail/sendTemplate" value="Send Email Using Template">
</td>
</tr>
<tr>
<td>
<input type="submit" formaction="mail/sendAttachment" value="Send Email With Attachment">
</td>
</tr>
</table>
</fieldset>
</form>
</div>
</div>

View File

@ -43,9 +43,7 @@
<tr>
<th></th>
<td>
<input type="submit" formaction="send" value="Send">
<input type="submit" formaction="sendTemplate" value="Send Using Template">
<input type="submit" formaction="sendAttachment" value="Send With Attachment">
<input type="submit" value="Send">
</td>
</tr>
</table>