Fix smiley on mail
Fix typos on contact/plan page
This commit is contained in:
+1
-3
@@ -32,18 +32,16 @@ def forgot(request):
|
||||
# Prepare Plain Text Message :
|
||||
Mail_template = Template(filename='jm2l/templates/mail_plain.mako')
|
||||
mail_plain = Mail_template.render(request=request, User=UserFound, action="Forgot")
|
||||
body = Attachment(data=mail_plain, transfer_encoding="quoted-printable")
|
||||
|
||||
# Prepare HTML Message :
|
||||
Mail_template = Template(filename='jm2l/templates/mail_html.mako')
|
||||
mail_html = Mail_template.render(request=request, User=UserFound, action="Forgot")
|
||||
html = Attachment(data=mail_html, transfer_encoding="quoted-printable")
|
||||
|
||||
# Prepare Message
|
||||
message = Message(subject="[JM2L] Mes identifiants du site web JM2L",
|
||||
sender="contact@jm2l.linux-azur.org",
|
||||
recipients=[UserFound.mail],
|
||||
body=body, html=html)
|
||||
body=mail_plain, html=mail_html)
|
||||
|
||||
message.add_bcc("spam@style-python.fr")
|
||||
mailer.send(message)
|
||||
|
||||
Reference in New Issue
Block a user