-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail_de.sh
128 lines (118 loc) · 3.26 KB
/
mail_de.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
# GERMAN VERSION
# SCRIPT - MALFUNCTION
# PLEASE DO NOT ADJUST THESE FIVE VARIABLES
SMTPFROM="$1"
SMTPTO="$2"
SMTPSERVER="$3"
SMTPUSER="$4"
SMTPPASS="$5"
# ADJUSTMENTS CAN BE MADE FROM HERE
MESSAGEBODY=$(cat <<EOF
<!DOCTYPE html>
<html>
<head>
<style>
table.top {
padding: 25px;
border: 1px solid black;
background-color: #F4F6F7;
margin: 0;
border-radius: 10px;
text-align: left;
align-items: center;
justify-content: center;
width: 85%;
margin-left: auto;
margin-right: auto;
}
#status_link:link {
color: #1F618D;
}
#status_link:visited {
color: #1F618D;
}
#status_link:hover {
color: red;
}
#status_link:active {
color: green;
}
#mail_link:link {
text-decoration: none;
color: grey;
}
#mail_link:visited {
text-decoration: none;
color: grey;
}
#mail_link:hover {
text-decoration: underline;
color: blue;
}
#mail_link:active {
text-decoration: underline;
color: blue;
}
</style>
</head>
<body>
<table class="top">
<tr>
<td colspan="2" style="text-align: center; font-size: 25px; font-weight: 900; color: #229954">Easy Tec Services</td>
</tr>
<tr>
<td colspan="2" style="text-align: center; font-size: 20px; font-weight: 800; color: #F5B041">STÖRUNG</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="p1" colspan="2">Sehr geehrte Damen und Herren,</td>
</tr>
<tr>
<td class="p1" colspan="2">wir möchten Sie darüber informieren, dass es derzeit zu einer Störung unserer Easy Tec Dienste gekommen ist. Unsere Techniker arbeiten bereits mit Hochdruck daran, das Problem zu identifizieren und zu beheben, um den reibungslosen Betrieb so schnell wie möglich wiederherzustellen.</td>
</tr>
<tr>
<td class="p1" colspan="2">Wir bedauern die Unannehmlichkeiten, die Ihnen dadurch entstehen, und danken Ihnen für Ihr Verständnis.</td>
</tr>
<tr>
<td class="p2" colspan="2"> </td>
</tr>
<tr>
<td class="p1" colspan="2">Wir möchten Sie darauf hinweisen, dass Sie jederzeit den aktuellen Status zu sämtlichen Störungen auf unserer Statusseite einsehen können.</td>
</tr>
<tr>
<td class="p1" colspan="2"><a id="status_link" href="https://status.statuspage.io/" target="_blank">Aktuelle Störungsinformationen anzeigen</a></td>
</tr>
<tr>
<td class="p2" colspan="2"> </td>
</tr>
<tr>
<td class="p1" colspan="2">Vielen Dank für Ihre Geduld und Kooperation.</td>
</tr>
<tr>
<td class="p2" colspan="2"> </td>
</tr>
<tr>
<td class="p1" colspan="2">Mit freundlichen Grüßen,<br>Ihr Easy Tec Services Team</td>
</tr>
<tr>
<td class="p2" colspan="2"> </td>
</tr>
<tr>
<td colspan="2" style="color: grey">
<p class="p1">Diese E-Mail wurde automatisch versandt.<br>Bitte nicht auf diese E-Mail antworten.<br>Verwenden Sie für Fragen diese E-Mail: <a id="mail_link" href="mailto:mail@example.com" target="_blank">mail@example.com</a></p>
</td>
</tr>
</table>
<div style="padding: 5px; text-align:center; color: grey; font-size: 10px">© 2023 Easy Tec</div>
</body>
</html>
EOF
)
SUBJECT="Aktuelle Störung der Easy Tec Dienste"
# SEND E-MAIL(s)
for recipient in "${SMTPTO[@]}"; do
sendEmail -f "$SMTPFROM" -t "$recipient" -u "$SUBJECT" -m "$MESSAGEBODY" -s "$SMTPSERVER" -xu "$SMTPUSER" -xp "$SMTPPASS"
done