Django multiple SMTP accounts

Here are the Django simple SMTP backend settings for just 1 email account

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST = "mail.mysmtpserver.somewhere"
    EMAIL_PORT = 587
    EMAIL_HOST_USER = "my@login"
    EMAIL_HOST_PASSWORD = "mypassword"
    EMAIL_USE_TLS = True

How is it possible to use 2 or more email accounts on the same server instead of one?

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST = "mail.mysmtpserver.somewhere"
    EMAIL_PORT =587
    EMAIL_HOST_USER = "my@login2"
    EMAIL_HOST_PASSWORD = "mypassword2"
    EMAIL_USE_TLS = True

I just need to send different emails based on the subject by different email account.

I checked the Django documentation but there was nothing

Back to Top