parent
15a63e0c75
commit
acca5da39d
12 changed files with 170 additions and 1 deletions
25
app/sendemail/message.py
Normal file
25
app/sendemail/message.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# the message body for the email should have placeholders for the bird name, the date found and the diagnosis
|
||||
|
||||
|
||||
def messagebody(
|
||||
date,
|
||||
bird,
|
||||
place,
|
||||
diagnosis,
|
||||
) -> str:
|
||||
text = f"""
|
||||
Guten Tag,
|
||||
|
||||
am {date} wurde in der NABU Wildvogelhilfe ein Vogel der Art {bird} aufgenomen.
|
||||
Der Fundort laut Finder*in war: {place}
|
||||
Die Diagnose bei Fund lautet: {diagnosis}
|
||||
|
||||
Mit freundlichen Grüßen
|
||||
|
||||
NABU Wildvogelhilfe Jena
|
||||
Untergliederung des
|
||||
NABU Kreisverband Jena e.V.
|
||||
Schillergässchen 5
|
||||
07745 Jena
|
||||
"""
|
||||
return text
|
Loading…
Add table
Add a link
Reference in a new issue