# Easy Email Types Default

The **Easy Email Types Default** recipe provides a default Easy Email template that overrides all emails sent from the site, ensuring every outgoing message is delivered as an HTML-formatted email with consistent styling.

## Recipe Type

Template recipe

## Overview

While Easy Email Types Core provides specific templates for individual Drupal core email types, Easy Email Types Default takes a broader approach. It defines a single, catch-all default template that applies to any email sent from the site that does not already have a dedicated Easy Email template assigned to it.

This ensures comprehensive HTML email coverage across the entire site, including emails from contributed modules, custom modules, and any other source that sends mail through Drupal's mail system. The default template wraps the email content in the HTML structure provided by the Easy Email theme, providing consistent branding and styling.

## Recipe Dependencies

Depends on the following recipes:

| Recipe                                                                                                       | Description                                                          |
| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
| [**Easy Email Text Format**](/developers/understanding-varbase/easy-email-recipes/easy-email-text-format.md) | Text format and CKEditor 5 configuration for email template editing. |

## Included Modules

Brings in the following core and contributed modules to your site:

| Module                                                                | Purpose                                                                                                                |
| --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [**Easy Email**](https://www.drupal.org/project/easy_email)           | A simple system for sending HTML-formatted emails.                                                                     |
| [**Easy Email Overrides**](https://www.drupal.org/project/easy_email) | Provides a system for overriding emails from core and contrib modules with emails generated from Easy Email templates. |

## Installation

Apply the recipe using Drush:

```bash
ddev drush recipe ../recipes/easy_email_types_default
```

After applying the recipe, all emails sent from the site that do not have a specific Easy Email template will be wrapped in the default HTML email template.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/developers/understanding-varbase/easy-email-recipes/easy-email-types-default.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
