# `Mailcast.Swoosh.Helper`
[🔗](https://github.com/mailcastio/mailcast-elixir/blob/0.0.8/lib/swoosh/helper.ex#L1)

Helper functions for Swoosh emails using the Mailcast adapter.

# `add_tag`

Add a tag to the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.add_tag("tag1", "value1")
```

# `disable_click_tracking`

Disable click tracking for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.disable_click_tracking()
```

# `disable_open_tracking`

Disable open tracking for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.disable_open_tracking()
```

# `enable_click_tracking`

Enable click tracking for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.enable_click_tracking()
```

# `enable_open_tracking`

Enable open tracking for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.enable_open_tracking()
```

# `put_data`

Add to the data for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.put_data("first_name", "John")
```

# `set_data`

Set the data for the email.
Data is used for variable substitution in the template language.

This will replace the existing data.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.set_data(%{"first_name" => "John", "last_name" => "Doe"})
```

# `set_tags`

Set the tags for the email.

This will replace the existing tags.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.set_tags([%{name: "tag1", value: "value1"}])
```

# `set_template_id`

Set the template ID for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.set_template_id("template_01jzqtmznaexgb9d3rpectx870")
```

# `set_transactional`

Set the transactional flag for the email.

## Examples

```elixir
email
|> Mailcast.Swoosh.Helper.set_transactional()
```

# `validate_tags`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
