Changes between Version 1 and Version 2 of Ticket #35118, comment 5


Ignore:
Timestamp:
Jan 17, 2024, 4:49:15 AM (10 months ago)
Author:
jecarr

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35118, comment 5

    v1 v2  
    1111
    1212{{{
     13from django.conf import settings
    1314from django.core import mail
    1415from django.core.mail.backends.smtp import EmailBackend
     
    1920        "Subject here",
    2021        "Here is the message.",
    21         "from@example.com",
    22         ["to@example.com"],
     22        settings.EMAIL_HOST_USER,
     23        [settings.EMAIL_HOST_USER],
    2324        fail_silently=False,
     25
     26        # Assumes email-related settings - user/password/host/port - are defined in settings
    2427        connection=EmailBackend()  # comment out to pass test
    2528    )
Back to Top