Options to send different types of emails were moved to the home page.
This commit is contained in:
parent
2f4ac59c54
commit
309e1a2da7
@ -31,7 +31,7 @@ public class MailController {
|
|||||||
@Qualifier("templateSimpleMessage")
|
@Qualifier("templateSimpleMessage")
|
||||||
public SimpleMailMessage template;
|
public SimpleMailMessage template;
|
||||||
|
|
||||||
@RequestMapping(value = "/send", method = RequestMethod.GET)
|
@RequestMapping(value = {"/send", "/sendTemplate", "/sendAttachment"}, method = RequestMethod.GET)
|
||||||
public String createMail(Model model) {
|
public String createMail(Model model) {
|
||||||
model.addAttribute("mailObject", new MailObject());
|
model.addAttribute("mailObject", new MailObject());
|
||||||
return "mail/send";
|
return "mail/send";
|
||||||
|
@ -15,9 +15,27 @@
|
|||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h4>Send Email</h4>
|
<h4>Select any of the options below to send sample email:</h4>
|
||||||
<form action="mail/send" method="get">
|
<form method="get" style="width: 200px;">
|
||||||
<input type="submit" value="Send Email">
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="submit" formaction="send" value="Send">
|
<input type="submit" value="Send">
|
||||||
<input type="submit" formaction="sendTemplate" value="Send Using Template">
|
|
||||||
<input type="submit" formaction="sendAttachment" value="Send With Attachment">
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user