# בדיקת הגדרת הדואר האלקטרוני לפני התחלת ההתקנה

**URL:** <https://meta.discourse.org/t/test-email-setup-before-the-installation-is-started/303658>\
**Category:** Feature\
**Tags:** email\
**Created:** [13 באפריל,‏ 2024,‏ 11:09am UTC](https://meta.discourse.org/t/test-email-setup-before-the-installation-is-started/303658 "2024-04-13T11:09:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [13 באפריל,‏ 2024,‏ 1:26pm UTC](https://meta.discourse.org/t/test-email-setup-before-the-installation-is-started/303658/2 "2024-04-13T13:26:13Z")

</div>

Hmm. It looks like it’s possible to do an only semi-braindead SMTP test like this:

```plaintext
echo Hello world > /tmp/mail.txt
curl -v smtp://$DISCOURSE_SMTP_ADDRESS:$DISCOURSE_SMTP_PORT \
  --mail-from noreply@$DISCOURSE_HOSTNAME \
  --mail-rcpt $(echo $DISCOURSE_DEVELOPER_EMAILS | cut -d ',' -f 1) \
  --user $DISCOURSE_SMTP_USER_NAME:"$DISCOURSE_SMTP_PASSWORD" \
  --upload-file /tmp/mail.txt 

```

So it should be possible to do such a test. My concern is that it would have a bunch of false positives and false negatives, but maybe printing a warning if it fails could help some people.

Maybe a better idea would be yet another script (`discourse-mail-check`?) that would do a quick and dirty test like that if you’re having trouble.

---

_[View the full topic](https://meta.discourse.org/t/test-email-setup-before-the-installation-is-started/303658)._
