Hello
I have added a signal to my model, which sends email to some email addresses once a model is saved (via models.signals.post_save.connect
signal and send_mail
for email sending). This idea still makes delay for the users, when they save the model at the site, they have to wait until all those emails are sent and thats when they receive response from the server.
Before trying signals, I had tried to wrap the save method of my model, and after super(Foo, self).save(*args, **kwargs)
I was sending emails. This delay experience was happening with that method too.
I simply want my email sending actions to be done in background, without showing delays to users at site.
How can this be solved?