I do it a bit differently: I run PostFix on my servers, which is configured to use an external SMTP server as forwarder (can be GMail, SES, ...). Then I let my app deliver to my local SMTP server.
This has a few advantages:
If you do it within the Django app, I would suggest to add some message queue stuff (Celery) so SMTP calls don't block your app, or retry in case of failure.
that's great thank you will try to implement this
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.