How To Install python3-django-anymail on Debian 12

Learn how to install python3-django-anymail on Debian 12 with this tutorial. python3-django-anymail is Django email backend for multiple ESPs (Python 3)

Introduction

In this tutorial we learn how to install python3-django-anymail on Debian 12.

What is python3-django-anymail

python3-django-anymail is:

Anymail integrates several transactional email service providers (ESPs) into Django, with a consistent API that lets you use ESP-added features without locking your code to a particular ESP.

It currently fully supports Amazon SES (requires python3-boto3), Mailgun, Mailjet, Mandrill (MailChimp transactional), Postal (self-hosted ESP), Postmark, SendinBlue, SendGrid, and SparkPost.

Anymail normalizes ESP functionality so it “just works” with Django’s built-in django.core.mail package. It includes:

  • Support for HTML, attachments, extra headers, and other features of Django’s built-in email
  • Extensions that make it easy to use extra ESP functionality, like tags, metadata, and tracking, with code that’s portable between ESPs
  • Simplified inline images for HTML email
  • Normalized sent-message status and tracking notification, by connecting your ESP’s webhooks to Django signals
  • “Batch transactional” sends using your ESP’s merge and template features

This is the Python 3 version of the package.

There are three methods to install python3-django-anymail on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-django-anymail Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python3-django-anymail using apt-get by running the following command:

sudo apt-get -y install python3-django-anymail

Install python3-django-anymail Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-django-anymail using apt by running the following command:

sudo apt -y install python3-django-anymail

Install python3-django-anymail Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-django-anymail using aptitude by running the following command:

sudo aptitude -y install python3-django-anymail

How To Uninstall python3-django-anymail on Debian 12

To uninstall only the python3-django-anymail package we can use the following command:

sudo apt-get remove python3-django-anymail

Uninstall python3-django-anymail And Its Dependencies

To uninstall python3-django-anymail and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove python3-django-anymail

Remove python3-django-anymail Configurations and Data

To remove python3-django-anymail configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge python3-django-anymail

Remove python3-django-anymail configuration, data, and all of its dependencies

We can use the following command to remove python3-django-anymail configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-django-anymail

Dependencies

python3-django-anymail have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-django-anymail package on Debian 12 using different package management tools: apt, apt-get and aptitude.