Update email templates
This commit is contained in:
parent
b582b10360
commit
a4b6b3cb1e
3 changed files with 83 additions and 21 deletions
|
|
@ -49,7 +49,7 @@ func SendWelcomeMail(person models.Person) error {
|
|||
return err
|
||||
}
|
||||
|
||||
msg.Subject("Ton compte POP Vaud")
|
||||
msg.Subject("Ton compte POP Vaud a été créé")
|
||||
msg.AddTo(person.Email)
|
||||
|
||||
err = msg.SetBodyHTMLTemplate(tplHTML, inputValues)
|
||||
|
|
|
|||
|
|
@ -1,19 +1,69 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Ton compte POP Vaud a été créé</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ton compte POP Vaud</h1>
|
||||
<div>
|
||||
Camarade,<br>
|
||||
<br>
|
||||
Ton compte POP Vaud a été créé.<br>
|
||||
Tu peux désormais réinitialiser ton mot de passe pour t'y connecter.<br>
|
||||
<br>
|
||||
Nom d'utilisateur: {{ .Person.Email }}<br>
|
||||
Mot de passe: <a href="{{ .ResetURL }}">{{ .ResetURL }}</a>
|
||||
</div>
|
||||
<body style="margin:0; padding:0; font-family: Arial, sans-serif; line-height: 1.5; color: #333;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #f5f5f5; padding: 20px;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff; border-radius: 5px; overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,0.1);">
|
||||
<!-- En-tête -->
|
||||
<tr>
|
||||
<td style="padding: 20px 20px 0; text-align: center; background-color: #d32f2f; color: #ffffff;">
|
||||
<h1 style="margin: 0; font-size: 24px;">POP Vaud</h1>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Contenu -->
|
||||
<tr>
|
||||
<td style="padding: 20px;">
|
||||
<p style="margin: 0 0 20px 0; font-size: 16px;">Cher·e camarade,</p>
|
||||
|
||||
<p style="margin: 0 0 20px 0;">
|
||||
Ton compte POP Vaud a été créé avec succès. Tu peux désormais accéder aux applications du parti.
|
||||
</p>
|
||||
|
||||
<h2 style="margin: 0 0 10px 0; font-size: 18px; color: #d32f2f;">Informations de connexion :</h2>
|
||||
<p style="margin: 0 0 20px 0;">
|
||||
<strong>Nom d'utilisateur :</strong> {{.Person.Email}}
|
||||
</p>
|
||||
|
||||
<p style="margin: 0 0 20px 0;">
|
||||
Pour commencer, réinitialise ton mot de passe en utilisant le lien suivant :
|
||||
</p>
|
||||
|
||||
<p style="margin: 0 0 20px 0; text-align: center;">
|
||||
<a href="{{.ResetURL}}" style="display: inline-block; padding: 10px 20px; background-color: #d32f2f; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: bold;">Réinitialiser mon mot de passe</a>
|
||||
</p>
|
||||
|
||||
<h2 style="margin: 0 0 10px 0; font-size: 18px; color: #d32f2f;">Applications disponibles :</h2>
|
||||
<ul style="margin: 0 0 20px 0; padding-left: 20px;">
|
||||
<li style="margin: 0 0 10px 0;"><a href="https://wiki.popvaud.ch" style="color: #d32f2f; text-decoration: none;">Wiki POP Vaud</a></li>
|
||||
<li style="margin: 0 0 10px 0;"><a href="https://nuage.popvaud.ch" style="color: #d32f2f; text-decoration: none;">Nuage POP Vaud</a></li>
|
||||
</ul>
|
||||
|
||||
<p style="margin: 0 0 20px 0;">
|
||||
En cas de problème, contacte <a href="mailto:informatique@popvaud.ch" style="color: #d32f2f; text-decoration: none;">informatique@popvaud.ch</a>.
|
||||
</p>
|
||||
|
||||
<p style="margin: 0; text-align: center; font-style: italic; color: #d32f2f;">
|
||||
Vive la révolution !
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Pied de page -->
|
||||
<tr>
|
||||
<td style="padding: 20px; text-align: center; background-color: #f5f5f5; color: #666; font-size: 14px;">
|
||||
Les Camarades du POP Vaud
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,7 +1,19 @@
|
|||
Camarade,
|
||||
Cher·e camarade,
|
||||
|
||||
Ton compte POP Vaud a été créé.
|
||||
Tu peux désormais réinitialiser ton mot de passe pour t'y connecter.
|
||||
Ton compte POP Vaud a été créé avec succès. Tu peux désormais accéder aux applications du parti.
|
||||
|
||||
Nom d'utilisateur: {{ .Person.Email }}
|
||||
Mot de passe: {{ .ResetURL }}
|
||||
Informations de connexion :
|
||||
- Nom d'utilisateur : {{.Person.Email}}
|
||||
|
||||
Pour commencer, réinitialise ton mot de passe en utilisant le lien suivant :
|
||||
{{.ResetURL}}
|
||||
|
||||
Applications disponibles :
|
||||
- Wiki POP Vaud : https://wiki.popvaud.ch
|
||||
- Nuage POP Vaud : https://nuage.popvaud.ch
|
||||
|
||||
En cas de problème, contacte informatique@popvaud.ch.
|
||||
|
||||
Vive la révolution !
|
||||
|
||||
Les camarades du POP Vaud
|
||||
Loading…
Add table
Add a link
Reference in a new issue