The `attach_alternative` method in `django.core.mail.EmailMultiAlternatives` class is a function that allows attaching an alternative content to an email message. This alternative content can be in a different format, such as HTML, providing recipients with different options to view the content. This method is commonly used when sending emails with both plain text and HTML versions of the message, giving email clients the flexibility to choose the most suitable format for display.
Python EmailMultiAlternatives.attach_alternative - 60 examples found. These are the top rated real world Python examples of django.core.mail.EmailMultiAlternatives.attach_alternative extracted from open source projects. You can rate examples to help us improve the quality of examples.