| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/django_uwsgi/ |
Upload File : |
from __future__ import unicode_literals
from django.core.mail import get_connection
from django.conf import settings
from .decorators import spool
from . import pickle
if 'django_uwsgi' in settings.EMAIL_BACKEND:
BACKEND = getattr(settings, 'UWSGI_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
@spool
def send_mail(arguments):
conn = get_connection(backend=BACKEND)
conn.send_messages([pickle.loads(arguments['body'])])