Skip to content

Commit

Permalink
Fix email newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 25, 2023
1 parent 0e8c0d9 commit e8d03cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def mailgun(subject: str, message: str, email: str):
'from': f'Titanic <{config.MAILGUN_EMAIL}>',
'to': [email],
'subject': subject,
'html': message
'html': message.replace('\n', '<br>')
}
)

Expand Down

0 comments on commit e8d03cd

Please sign in to comment.