Custom mailto: link using Thymeleaf -
i working project using spring , thymeleaf. have list of users. create contact link using mailto:
<a href="mailto:name@email.com"> i displaying list of users this:
<tr th:each="users : ${users}"> <td th:text="${users.id}"></td> <td th:text="${users.firstname}"></td> <td th:text="${users.lastname}"></td> <td th:text="${users.email}"></td> </tr> so achieve mailto suits every new professor , email without me writing manually. thinking if possible write this:
<td><a th:href = "mailto:${users.email}">
try following code
<td><a th:href = "'mailto:' + ${users.email}">send email </a></td>
Comments
Post a Comment