mahmoud ™

Results 5 comments of mahmoud ™

Can you please elaborate more here? How do you setup the custom backend? I just ran into an issue while trying to send an email with outlook's smtp server. I'm...

Hello @lavr ! I've tried something like the following: ```python message = emails.Message( subject=JinjaTemplate(subject_template), html=JinjaTemplate(html_template), mail_from=(settings.emails_from_name, settings.emails_from_email), ) smtp_options = {"host": settings.smtp_host, "port": settings.smtp_port, "fail_silently": False} smtp_options["ssl"] = True smtp_options["user"]...

One more thing to add is that I'm using Outlook SMTP settings as [specified here](https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040). I've setup an App password for the outlook account.

Running something as simple as: ```python import socket import ssl hostname = 'smtp-mail.outlook.com' port = 587 context = ssl.create_default_context() with socket.create_connection((hostname, port)) as sock: with context.wrap_socket(sock, server_hostname=hostname) as ssock: print(ssock.version())...

Bingo! Thank you :)