mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Improve email.
This commit is contained in:
parent
226a7a0ff9
commit
35346bfba2
@ -57,7 +57,7 @@ final public class NotificationService {
|
|||||||
model.put("message", "message");
|
model.put("message", "message");
|
||||||
model.put("ownerName", user.getFirstname());
|
model.put("ownerName", user.getFirstname());
|
||||||
model.put("mapEditUrl", baseUrl + "/c/maps/" + mindmap.getId() + "/edit");
|
model.put("mapEditUrl", baseUrl + "/c/maps/" + mindmap.getId() + "/edit");
|
||||||
model.put("baseUrl", baseUrl + "/c/maps/" + mindmap.getId() + "/edit");
|
model.put("baseUrl", baseUrl);
|
||||||
|
|
||||||
mailer.sendEmail(formMail, collabEmail, subject, model, "newCollaboration.vm");
|
mailer.sendEmail(formMail, collabEmail, subject, model, "newCollaboration.vm");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -35,7 +35,7 @@ database.password=
|
|||||||
mail.smtp.port=587
|
mail.smtp.port=587
|
||||||
mail.smtp.host=smtp.gmail.com
|
mail.smtp.host=smtp.gmail.com
|
||||||
mail.username=pveiga@gmail.com
|
mail.username=pveiga@gmail.com
|
||||||
mail.password=p0w3rwdgg
|
mail.password=
|
||||||
mail.smtp.auth=true
|
mail.smtp.auth=true
|
||||||
mail.smtp.starttls.enable=true
|
mail.smtp.starttls.enable=true
|
||||||
mail.smtp.quitwait=false
|
mail.smtp.quitwait=false
|
||||||
|
@ -1,37 +1,32 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<div style="background-color: #fbeed5; max-width: 650px; font-family: Arial, sans-serif; color: #000; padding: 5px;">
|
<div style="background-color: #fbeed5; max-width: 650px; font-family: Arial, sans-serif; color: #000; padding: 5px;">
|
||||||
<div style="height: 36px; font-size: 14px; font-weight: bold; padding-bottom: 4px;">
|
<div style="height: 60px; font-size: 14px; font-weight: bold; padding-bottom: 4px;">
|
||||||
<table style="display: inline;width: 100%;">
|
<table style="display: inline;width: 100%;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td height="35px" width="2px" style="padding: 0; padding-right: 5px; text-align:center">
|
<td height="50px" width="2px" style="padding: 0; padding-right: 5px; text-align:center">
|
||||||
<img src="${mapEditUrl}" alt="Mindmap"/>
|
<a href="${baseUrl}">
|
||||||
</td>
|
<img style="border: 0;margin-top: 10px;"
|
||||||
<td valign="middle" height="32px" style="padding: 0;">I've shared <a href='${mapEditUrl}'>
|
src="${baseUrl}/images/logo-small.png"
|
||||||
${mindmap.title}</a> mindmap with you.
|
alt="WiseMapping Log"/>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div style="font-size: 13px; background-color: #FFF; padding: 10px 7px 7px 7px;">
|
|
||||||
#if( ! $message )
|
|
||||||
<p>${message}</p>
|
|
||||||
#end
|
|
||||||
<p>Click to open: <a href="${mapEditUrl}">${mindmap.title}</a></p>
|
|
||||||
|
|
||||||
<span style="color: #898989;">WiseMapping makes it easy to create, store and share online mindmap.</span>
|
</a>
|
||||||
|
</td>
|
||||||
|
<td valign="bottom" height="32px" style="padding: 0;">I've shared <a href='${mapEditUrl}'>
|
||||||
|
${mindmap.title}</a> mindmap with you.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div style="font-size: 13px; background-color: #FFF; padding: 10px 7px 7px 7px; min-height: 150px">
|
||||||
|
#if( ! $message )
|
||||||
|
<p>${message}</p>
|
||||||
|
#end
|
||||||
|
<p>Click to open: <a href="${mapEditUrl}">${mindmap.title}</a></p>
|
||||||
|
<span style="color: #898989;">WiseMapping makes easy to create, store and share online mindmap. </span>
|
||||||
|
|
||||||
<div style="text-align: right;">
|
|
||||||
<a href="${baseUrl}">
|
|
||||||
<img style="border: 0;margin-top: 10px;"
|
|
||||||
src="${baseUrl}/images/logo-small.png"
|
|
||||||
alt="WiseMapping Log"/>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user