> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/ar/althyeh/overleaf-toolkit/email-delivery.md).

# تسليم البريد الإلكتروني

يدعم Overleaf إرسال البريد الإلكتروني عبر طريقتين: بروتوكول نقل البريد البسيط (SMTP) و [خدمة البريد الإلكتروني البسيطة من أمازون (SES)](https://aws.amazon.com/ses/). يمكن استخدام SMTP إذا كان لديك خادم بريد إلكتروني مفعّل على localhost ويستمع للاتصالات المحلية.

## الإعدادات

يتم إعداد البريد الإلكتروني باستخدام متغيرات البيئة التالية.

#### إعدادات المرسل

| الاسم                         | الوصف                                                                                                                                           |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_FROM_ADDRESS` | <p>عنوان المرسل، مثل <a href="mailto:support@mycompany.com"><code>'<support@mycompany.com>'</code></a><br><br>- <strong>مطلوب</strong>: نعم</p> |
| `OVERLEAF_EMAIL_REPLY_TO`     | عنوان الردّ، مثل `'noreply@mycompany.com'`                                                                                                      |

#### SMTP

| الاسم                                   | الوصف                                                                                                                                                                                                                                                       |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST`              | اسم المضيف أو عنوان IP للاتصال به. يجب أن يكون متاحًا من حاوية Docker                                                                                                                                                                                       |
| `OVERLEAF_EMAIL_SMTP_PORT`              | المنفذ للاتصال به                                                                                                                                                                                                                                           |
| `OVERLEAF_EMAIL_SMTP_SECURE`            | إذا `true` سيستخدم الاتصال TLS عند الاتصال بالخادم. إذا `false` أو لم يتم تعيينه، فسيُستخدم TLS إذا كان الخادم يدعم `STARTTLS` الامتداد. في معظم الحالات، عيّن هذه القيمة إلى `true` إذا كنت تتصل بالمنفذ `465`. بالنسبة للمنفذ `587` أو `25` أبقِه `false` |
| `OVERLEAF_EMAIL_SMTP_USER`              | اسم المستخدم الذي يجب استخدامه للمصادقة لدى خادم SMTP                                                                                                                                                                                                       |
| `OVERLEAF_EMAIL_SMTP_PASS`              | كلمة المرور المرتبطة باسم مستخدم SMTP                                                                                                                                                                                                                       |
| `OVERLEAF_EMAIL_SMTP_TLS_REJECT_UNAUTH` | إذا `false` سيؤدي ذلك إلى فتح اتصال بخادم TLS بشهادة TLS موقعة ذاتيًا أو غير صالحة                                                                                                                                                                          |
| `OVERLEAF_EMAIL_SMTP_IGNORE_TLS`        | عندما `true` و `OVERLEAF_EMAIL_SMTP_SECURE` يكون `false` فلا يُستخدم TLS حتى لو كان الخادم يدعم `STARTTLS` الامتداد                                                                                                                                         |
| `OVERLEAF_EMAIL_SMTP_NAME`              | اسم مضيف اختياري للتحقق من TLS إذا `OVERLEAF_EMAIL_SMTP_HOST` تم تعيينه إلى عنوان IP، فسيكون الافتراضي هو اسم مضيف الجهاز.                                                                                                                                  |
| `OVERLEAF_EMAIL_SMTP_LOGGER`            | عندما `true` يطبع رسائل السجل إلى `web.log`.                                                                                                                                                                                                                |

#### واجهة Amazon SES SMTP

يمكنك قراءة المزيد حول استخدام واجهة Amazon SES SMTP لإرسال البريد الإلكتروني [هنا](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html).

| الاسم                      | الوصف                                                                 |
| -------------------------- | --------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_SMTP_HOST` | اسم المضيف أو عنوان IP للاتصال به. يجب أن يكون متاحًا من حاوية Docker |
| `OVERLEAF_EMAIL_SMTP_PORT` | المنفذ للاتصال به                                                     |
| `OVERLEAF_EMAIL_SMTP_USER` | اسم المستخدم الذي يجب استخدامه للمصادقة لدى خادم SMTP                 |
| `OVERLEAF_EMAIL_SMTP_PASS` | كلمة المرور المرتبطة باسم مستخدم SMTP                                 |

#### واجهة برمجة تطبيقات Amazon SES

يمكنك قراءة المزيد حول استخدام واجهة برمجة تطبيقات Amazon SES لإرسال البريد الإلكتروني [هنا](https://docs.aws.amazon.com/ses/latest/dg/send-email-api.html).

| الاسم                                  | الوصف                                               |
| -------------------------------------- | --------------------------------------------------- |
| `OVERLEAF_EMAIL_AWS_SES_ACCESS_KEY_ID` | إذا كنت تستخدم AWS SES، فمفتاح الوصول               |
| `OVERLEAF_EMAIL_AWS_SES_SECRET_KEY`    | إذا كنت تستخدم AWS SES، فالمفتاح السري              |
| `OVERLEAF_EMAIL_AWS_SES_REGION`        | إذا لم يتم تعيينه، فالمنطقة الافتراضية هي US-EAST-1 |

#### AWS SES مع أدوار المثيل

| الاسم                   | الوصف                                                                                                                                                     |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_EMAIL_DRIVER` | عندما يتم ضبط هذا على `ses`، سيستخدم نظام البريد الإلكتروني طريقة واجهة برمجة التطبيقات SES وسيعتمد على أدوار المثيل المُكوَّنة لإرسال البريد الإلكتروني. |

#### التخصيص

| الاسم                          | الوصف                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OVERLEAF_CUSTOM_EMAIL_FOOTER` | <p>HTML مخصص يُضاف إلى جميع رسائل البريد الإلكتروني، مثل<br><br><strong>مثال</strong>: <code>"\<div>يتم تشغيل هذا النظام بواسطة القسم x \</div> \<div> إذا كانت لديك أي أسئلة، فيرجى الاطلاع على الأسئلة الشائعة لدينا \<a href='</code><a href="https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/https:/somwhere.com&#x27;%3Ehere&#x26;#x3C;/a%3E&#x26;#x3C;/div%3E"><code>[https://somwhere.com'>هنا\&#x26;#x3C;/a>\&#x26;#x3C;/div>](https://ayakaleaf-pro.ayaka.space/on-premises/ar/althyeh/overleaf-toolkit/https:/somwhere.com'>هنا\&#x26;#x3C;/a>\&#x26;#x3C;/div>)</code></a><code>"</code></p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/ar/althyeh/overleaf-toolkit/email-delivery.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
