fixed ##178, no strange symbol in emails
This commit is contained in:
parent
69c4c98192
commit
0035a2517d
|
@ -30,10 +30,10 @@ class EmailController():
|
||||||
msg = MIMEMultipart()
|
msg = MIMEMultipart()
|
||||||
msg['From'] = self.email
|
msg['From'] = self.email
|
||||||
msg['To'] = user.mail
|
msg['To'] = user.mail
|
||||||
msg['Subject'] = Header('Gerücht, bezahle deine Schulden!', 'utf-8')
|
msg['Subject'] = Header('Gerücht, bezahle deine Schulden!', 'utf-8')
|
||||||
sum = user.getGeruecht(datetime.now().year).getSchulden()
|
sum = user.getGeruecht(datetime.now().year).getSchulden()
|
||||||
if sum < 0:
|
if sum < 0:
|
||||||
type = 'Schulden'
|
type = 'Schulden'
|
||||||
add = 'Bezahle diese umgehend an den Finanzer.'
|
add = 'Bezahle diese umgehend an den Finanzer.'
|
||||||
else:
|
else:
|
||||||
type = 'Guthaben'
|
type = 'Guthaben'
|
||||||
|
@ -46,4 +46,4 @@ class EmailController():
|
||||||
LOGGER.debug("Sended email to {}. {}".format(user.uid, {'error': False, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}))
|
LOGGER.debug("Sended email to {}. {}".format(user.uid, {'error': False, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}))
|
||||||
return {'error': False, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}
|
return {'error': False, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}
|
||||||
except Exception:
|
except Exception:
|
||||||
return {'error': True, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}
|
return {'error': True, 'user': {'userId': user.uid, 'firstname': user.firstname, 'lastname': user.lastname}}
|
||||||
|
|
Loading…
Reference in New Issue