# Forward the email

> Forwards the email that started the run, with its attachments, to someone else. You can add a note above it.

Source: https://docs.go-lumen.ai/de/reference/steps/forward-email

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `forward-email` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | notify, messages |
| **Credits** | **1** Credit bei jedem Erfolg |
| **Externe Wirkung** | ja: Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun. |
| **Die Installation muss bereitstellen** | `mail` |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | `email` |
| **Liefert** | nichts |
| **Arbeitet auf** | item: einem Dokument nach dem anderen |

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe [Dokumente und Daten](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

Keine benannten Ausgaben. Spätere Knoten sehen weiterhin alles, was auf dem Pfad zuvor entstanden ist, und dieser Schritt reicht die Dokumente unverändert weiter.

## Einstellungen

Wird unter `config:` im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie `{nodeId.field}` enthalten.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `to` (erforderlich) | string |  | Forward to (minLength 3) |
| `note` | string |  | Note is written above the forwarded message. (maxLength 4000) |

Das vollständige JSON Schema dieser Einstellungen: [forward-email.schema.json](https://docs.go-lumen.ai/schemas/steps/forward-email.schema.json).

## Beispiel

```yaml title="config"
note: Please prepare a quote for this customer.
to: sales@yourcompany.co.il
```

## Im Flow verwenden

Ein Knoten, der `forward-email` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-email-forward
  namespace: tenant-acme
spec:
  classRef: {name: email-forward}
  config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: forward-email-example
  namespace: tenant-acme
spec:
  displayName: "Forward the email"
  triggers:
    - id: start
      ref: {name: email-arrives}
      connectorRef: {name: my-email-forward}
      next: [forward-email]
  nodes:
    - id: forward-email
      stepRef: {name: forward-email}
      config:
        note: Please prepare a quote for this customer.
        to: sales@yourcompany.co.il
```
