Skip to content

Rename all backends to "EmailBackend" for consistency with Django #49

@medmunds

Description

@medmunds

Django's built-in email backend class names are all EmailBackend; the type of backend is indicated by the module:

  • django.core.mail.backends.smtp.EmailBackend
  • django.core.mail.backends.console.EmailBackend
  • django.core.mail.backends.filebased.EmailBackend
  • django.core.mail.backends.locmem.EmailBackend
  • django.core.mail.backends.dummy.EmailBackend

Before 1.0-alpha, Anymail should change to follow Django's naming convention:

  • anymail.backends.mailgun.MailgunBackend → anymail.backends.mailgun.EmailBackend
  • anymail.backends.mandrill. MandrillBackend → anymail.backends.mandrill.EmailBackend
  • anymail.backends.postmark.PostmarkBackend → anymail.backends.postmark.EmailBackend
  • anymail.backends.sendgrid.SendGridBackend → anymail.backends.sendgrid.EmailBackend
  • anymail.backends.sparkpost.SparkPostBackend → anymail.backends.sparkpost.EmailBackend

To avoid breaking code, the current names should still be supported with a deprecation warning.

(As an additional benefit, this would eliminate the need for admonishments throughout the docs on how to properly capitalize each ESP's name.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions