Is it emails that you are sending to yourself that are going to spam, or emails that you are sending to others?
Some email providers will automatically route emails to spam that are “coming from yourself” because that’s a common technique for sending spam.
If this is emails that you are sending to yourself, set up a different email account for yourself on a different provider and try sending emails to that.
I use SMTP to send emails over Mailgun email provider to my personal Gmail account (it goes to spam), but when I send to my work email (Outlook) it works fine. I’m confused why gmail treat my emails as spam.
No, as I said, I use Mailgun and my owndomain. So the answer is no I don’t use my gmail as the “From” address. The “From” address is like team@MY_DOMAIN.com
Did you add your team@my_domain.com as a contact in your gmail account?
(Side note: This definitely isn’t a Django issue. Django has no control over the disposition of emails on the receiving end. It’s gmail that is sending the email to your spam folder. You’d have to dig through the resources available to you to determine exactly why gmail is routing it to spam.)
Side note: I run a mail server myself on my own domain. That doesn’t prevent me from sending emails using any arbitrary domain as the “From” name.