# mail.send

Canonical URL: https://developers.iagenify.com/ar/sdk/workflows/steps/mail-send/
Language: ar

`type: "mail.send"`

يرسل رسالة من أحد عناوين الحساب، ويتطلب خطوة إنسانية إلى الأمام - لا يوجد استثناء.

Status: needs approval upstream · 5 recipients · box required

> **يلزم ان تكون الخطوة البشرية في الاعلى**
>
> هذا خارج الحساب، والركض لا يحتاج إلى سؤال. التعريف مرفوض عندما تحفظه إلا إذا كانت خطوة بشرية تجلس على الطريق الذي يصل إلى هذا.

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `box` | string | مطلوب | العنوان الذي يكتب لابد أنه أحد الحسابات |
| `to` | string | string[] | مطلوب | خمسة متلقيات على الأكثر |
| `cc` | string | string[] |  | نسخ. |
| `subject` | string | مطلوب | الموضوع الموضوع |
| `text` | string |  | النص المبسط. |
| `html` | string |  | أو HTMLواحد من الاثنين مطلوب |

```javascript
{ id: "send", type: "mail.send", config: {
    box: "ops@example.com",
    to: "{{steps.approve.output.recipient}}",
    subject: "Weekly digest",
    text: "{{steps.write.output.text}}" } }
```

## المخرجات {#output}

```javascript
{{steps.send.output.accepted}}   // true
{{steps.send.output.from}}       // the address the recipient actually sees
{{steps.send.output.aligned}}    // whether it was signed with its own domain
```

## لم يُقِل {#accepted}

> **الـ UR لا ترجع أيادي التنفيذ عند كتابة الرسالة**
>
> وما يحدث بعد ذلك لا يُقال لنا، أي سلسلة من التقارير التي تفيد بأنه “أرسل” إلى شخص ما تفيد بأنه مقبول - وهو أمر صحيح، وليس الشيء نفسه.

## الحساب يجب أن يملك صندوق بريد {#owns}

لا توجد طريقة أخرى لإرسال `box` هذا ليس أحد عناوين الحساب يفشل في الخطوة

- [(الحلقة الرابعة)](/ar/sdk/workflows/steps/human): الموافقة على هذه الثلاثة المطلوبة
- [mailbox.send()](/ar/sdk/ref/mailbox/send): من الشيفرة.
- [خطوات سير العمل](/ar/sdk/workflows/steps): الأنواع الثلاثة والعشرون.

```python
{"id": "send", "type": "mail.send", "config": {
    "box": "ops@example.com",
    "to": "{{steps.approve.output.recipient}}",
    "subject": "Weekly digest",
    "text": "{{steps.write.output.text}}"}}
```

```python
"{{steps.send.output.accepted}}"   # True
"{{steps.send.output.from}}"       # the address the recipient actually sees
"{{steps.send.output.aligned}}"    # whether it was signed with its own domain
```
