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")
|
||||
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";
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user