rest - Consuming RESTful web service from email link buttons -
i came across scenario need call controller method on click of link (basically link buttons text "approve" , "reject") in client email. client can approve or reject. accordingly method in controller gets called further triggers mail user respective contents. second part of scenario.
in first part (though have implemented it) user had raised request new registration client got mail contents "approve" , "reject" buttons.
i using spring mvc apache freemarker template.
newuserregrequest.ftl
<html> <head> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"/> </head> <body> <h2>hi,</h2> <h3>new registration bidmanager development:</h3> <span>this request has been raised user details below -</span> <div> first name : ${bmusermodel.firstname}<br> last name : ${bmusermodel.lastname}<br> country : ${bmusermodel.country}<br> </div><br> <pre><a class="btn btn-primary" href="http://localhost:8080/bidmanwes/bmuser/registration">approve</a> <a class="btn btn-primary" href="http://localhost:8080/bidmanwes/bmuser/registration">reject</a></pre> </body></html>
note- ans acceptable if there better way achieve scenario.
thanks in advance!!!
Comments
Post a Comment