> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/ar/aliadadat/overleaf-toolkit/email-delivery.md).

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

يدعم Overleaf إرسال البريد الإلكتروني عبر طريقتين: بروتوكول نقل البريد البسيط (SMTP) و [خدمة Amazon Simple Email Service (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`.                                                                                                                                                                                                               |

#### واجهة SMTP الخاصة بـ Amazon SES

يمكنك قراءة المزيد عن استخدام واجهة SMTP الخاصة بـ Amazon SES لإرسال البريد الإلكتروني [هنا](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://overleaf-pro.ayaka.space/on-premises/ar/aliadadat/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://overleaf-pro.ayaka.space/on-premises/ar/aliadadat/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.
