django-mailer-2 icon indicating copy to clipboard operation
django-mailer-2 copied to clipboard

First sent is slow

Open victorfontes opened this issue 15 years ago • 3 comments

Actually is just a question: Why is django_mailer so slow the first time a mail is sent, then responses instantly the next times ? At least on the dev server

victorfontes avatar Nov 15 '10 07:11 victorfontes

The SMTP connection takes a long time to set up, but once it's up you don't need to connect again. This isn't something restricted to just django-mailer - standard django mail calls experence the same things.

SmileyChris avatar Nov 15 '10 08:11 SmileyChris

What I dont get it is: if I'm not sending an email, just storing it on a database, why is there a SMTP connection ?

victorfontes avatar Nov 16 '10 20:11 victorfontes

Hrm, that is interesting. You're right - there shouldn't be an SMTP connection established.

I'm re-opening this. If you get the chance to take a deeper look, it'd be appreciated.

SmileyChris avatar Nov 16 '10 20:11 SmileyChris