added mail
parent
653de76f68
commit
32348e92a8
|
@ -59,6 +59,7 @@ func MailMessagesHandling() {
|
|||
if !strings.HasSuffix(mailMessage.UserMail, "@roese.dev") &&
|
||||
!strings.HasSuffix(mailMessage.UserMail, "@umbach.dev") &&
|
||||
!strings.HasSuffix(mailMessage.UserMail, "@kk-innovation.eu") &&
|
||||
!strings.HasSuffix(mailMessage.UserMail, "@kk-innovation.net") &&
|
||||
!strings.HasSuffix(mailMessage.UserMail, "@srv1.mail-tester.com") {
|
||||
mailMessage.UserMail = "myprojects@roese.dev"
|
||||
}
|
||||
|
|
|
@ -1,12 +1,19 @@
|
|||
%title%
|
||||
%header%
|
||||
|
||||
%text1%
|
||||
{{.verifyURL}}
|
||||
|
||||
%cancelText%
|
||||
{{.cancelURL}}
|
||||
|
||||
%yourAppointment%
|
||||
%appointment1%
|
||||
%appointment2%
|
||||
%appointment3%
|
||||
|
||||
{{.address}}
|
||||
|
||||
%footer%
|
||||
|
||||
%dsgvo%
|
|
@ -0,0 +1,108 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-family: "Arial", sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
table.container {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
margin: 20px auto;
|
||||
background-color: #ffffff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
padding: 20px;
|
||||
}
|
||||
table.content {
|
||||
width: 100%;
|
||||
}
|
||||
h1 {
|
||||
color: #333;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
p {
|
||||
color: #555;
|
||||
margin: 0 0 15px;
|
||||
}
|
||||
.verification-code {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #3498db;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.booking-details {
|
||||
margin-top: 20px;
|
||||
padding: 10px;
|
||||
|
||||
background-color: #f4f4f4;
|
||||
text-align: center;
|
||||
|
||||
border-radius: 8px;
|
||||
}
|
||||
.booking-details p {
|
||||
margin: 5px 20px;
|
||||
}
|
||||
.booking-desc {
|
||||
color: #000;
|
||||
}
|
||||
.booking-label {
|
||||
font-weight: bold;
|
||||
color: #3498db;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 20px;
|
||||
color: #777;
|
||||
font-size: 12px;
|
||||
}
|
||||
.cancel-button {
|
||||
display: inline-block;
|
||||
padding: 10px 15px;
|
||||
background-color: #e74c3c;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.divider {
|
||||
margin: 20px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table class="container" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="content">
|
||||
<h1>%title%</h1>
|
||||
<p>%header%</p>
|
||||
<p>%text1%</p>
|
||||
<p>%cancelText%</p>
|
||||
<a href="{{.cancelURL}}" class="cancel-button">%cancelButton%</a>
|
||||
<div class="divider"></div>
|
||||
<table class="booking-details">
|
||||
<tr>
|
||||
<td>
|
||||
<p class="booking-label">%yourAppointment%</p>
|
||||
<p class="booking-desc">%appointment1%</p>
|
||||
<p class="booking-desc">%appointment2%</p>
|
||||
<p class="booking-desc">%appointment3%</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="divider"></div>
|
||||
<p>{{.address}}</p>
|
||||
|
||||
<p class="footer">%footer%</p>
|
||||
<a class="footer" href="https://www.kk-innovation.eu">%dsgvo%</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
%title%
|
||||
%header%
|
||||
|
||||
%text1%
|
||||
|
||||
%cancelText%
|
||||
{{.cancelURL}}
|
||||
|
||||
%yourAppointment%
|
||||
%appointment1%
|
||||
%appointment2%
|
||||
%appointment3%
|
||||
|
||||
{{.address}}
|
||||
|
||||
%footer%
|
||||
|
||||
%dsgvo%
|
|
@ -71,6 +71,44 @@
|
|||
"dsgvo": {
|
||||
"de": "Datenschutzerklärung"
|
||||
}
|
||||
},
|
||||
"emailVerified": {
|
||||
"mailSubject": {
|
||||
"de": "Ihre Buchung wurde bestätigt"
|
||||
},
|
||||
"title": {
|
||||
"de": "Buchungsbestätigung"
|
||||
},
|
||||
"header": {
|
||||
"de": "Liebe(r) {{.name}},"
|
||||
},
|
||||
"text1": {
|
||||
"de": "die Terminbuchung wurde erfolgreich abgeschlossen. Der Termin findet zum angegebenen Zeitpunkt statt."
|
||||
},
|
||||
"cancelButton": {
|
||||
"de": "Buchung stornieren"
|
||||
},
|
||||
"cancelText": {
|
||||
"de": "Falls Sie Ihren Termin nicht wahrnehmen können, bitten wir Sie, den Termin zu stornieren."
|
||||
},
|
||||
"yourAppointment": {
|
||||
"de": "Ihr Termin:"
|
||||
},
|
||||
"appointment1": {
|
||||
"de": "{{.activityName}} bei {{.username}},"
|
||||
},
|
||||
"appointment2": {
|
||||
"de": "{{.day}}, {{.dayNumber}}. {{.month}} {{.year}}"
|
||||
},
|
||||
"appointment3": {
|
||||
"de": "von {{.startTime}} bis {{.endTime}} Uhr"
|
||||
},
|
||||
"footer": {
|
||||
"de": "Vielen Dank, dass Sie unseren Service gewählt haben. Bei Fragen kontaktieren Sie uns gerne."
|
||||
},
|
||||
"dsgvo": {
|
||||
"de": "Datenschutzerklärung"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue