# 发送测试邮件时出现问题

**URL:** <https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312>\
**Category:** Self-hosting\
**Created:** [2018年七月1日 17:12 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312 "2018-07-01T17:12:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)\
**Post date:** [2018年七月1日 17:12 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/1 "2018-07-01T17:12:48Z")

</div>

Hey Guys,  
I have tired the related topics before submitting but still could myself.

Background:

- I installed discourse using digitalocean oneclick installer. The website is running under [forum.example.org](http://forum.example.org) without any problem except the test email configuration.

- Used Elasticemail to configure the SMTP under discourse setup.

- When going inside the admin \> Email \> Settings \> Send Test Email, I am getting the below error

> “There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again.”

**This is how it looks the Send Test Email screen.**

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/045abdb9a32cfbc621b30b3a126a1cf04015d5d1.png)

**Possible solutions according to different**  
**1. updating app.yml settings**  
I was confused why the username show as test(Or may this is how it supposed to look) , so by another thread, I was able to go inside app.yml and updated the username based on elasticemail username and api password, and reboot the discourse app) but still face the same issue

**2. contacting digital ocean to open up SMTP**  
Community in discourse has mentioned that DO would have blocked and that is why we are facing this issue. I am waiting for their reply. Is it really to do with DO or with elasticemail? Some asked to do telnet.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/8/8891cecaa1371fd9c828de8894464d1809751278.png)  
Am getting the above. Does it looks correct?

Sorry if this both solution are not supposed for this error. Can someone advice where am missing?

---

<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:** [2018年七月2日 06:13 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/2 "2018-07-02T06:13:32Z")

</div>

It looks like the port isn’t blocked. Either you have the wrong user password info, or you have not configured elastic email properly.

---

<div class="post-metadata">

**Author:** ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)\
**Post date:** [2018年七月2日 07:05 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/3 "2018-07-02T07:05:42Z")

</div>

Thanks Jay for confirming this. In this situation, where should i modify this information?

In app.yml ? or in Admin panel of discourse itself?

---

<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:** [2018年七月2日 07:50 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/4 "2018-07-02T07:50:22Z")

</div>

The recommended was is to run

./discourse-setup

But since you didn’t follow the [official install](https://meta.discourse.org/t/142537?silent=true) instructions, you don’t know that.

---

<div class="post-metadata">

**Author:** ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)\
**Post date:** [2018年七月2日 08:13 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/5 "2018-07-02T08:13:13Z")

</div>

Sorry for missing that. so basically redo the whole thing from [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) ?

Whichever the install model, it should allows us to change information from app configuration, correct me .

---

<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:** [2018年七月2日 08:38 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/6 "2018-07-02T08:38:48Z")

</div>

I believe that you can just run discourse-setup

---

<div class="post-metadata">

**Author:** ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)\
**Post date:** [2018年七月2日 09:28 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/7 "2018-07-02T09:28:16Z")

</div>

> [@pfaffman](#):
>
> ./discourse-setup

MAN! THANKS! I just ran this and enter the new details (instead of subdomain, I just use main domain there)  
 ![image](https://global.discourse-cdn.com/meta/original/3X/8/5/8590f5ee83a38d752def9c7de35c46f889cb5046.png)

And the test email works too which i can find the log in elasticemail. But it bounce off from their side, I will check with them why is that.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2018年八月1日 09:28 UTC](https://meta.discourse.org/t/there-was-a-problem-sending-the-test-email/91312/8 "2018-08-01T09:28:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
