# Discourse app.yml doesn't like email password contain "#"

**URL:** <https://meta.discourse.org/t/discourse-app-yml-doesnt-like-email-password-contain/58437>\
**Category:** Bug\
**Created:** [Março 6, 2017, 12:12am UTC](https://meta.discourse.org/t/discourse-app-yml-doesnt-like-email-password-contain/58437 "2017-03-06T00:12:56Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [Março 10, 2017, 11:31pm UTC](https://meta.discourse.org/t/discourse-app-yml-doesnt-like-email-password-contain/58437/11 "2017-03-10T23:31:52Z")

</div>

> [@codinghorror](#):
>
> I believe with double quotes around it, it should work. It should be tested.

I “tested” and the docker that gets called at the end of a rebuild has the SMTP password in single quotes. Like this:

```
'DISCOURSE_SMTP_PASSWORD=this@!#paswwored' -e 

```

I am not willing to contrive an actual test to see what password gets sent to an SMTP server. To recap, the OP presents evidence that it doesn’t work.

> [@LiveLikeLastDay](#):
>
> I tried my Gmail account with contain “#” and rebuild app, but couldn’t send test email at admin/email.
> 
> I changed my Gmail password without “#” and rebuild app, then send test email works fine.

Docs say pretty clearly not to use Gmail for mail sending. The recommended services don’t (in my experience) create passwords with hashes in them. Seems like an edge case, but I can have `./discourse-setup` check for hashes in passwords if @codinghorror wants.

---

_[View the full topic](https://meta.discourse.org/t/discourse-app-yml-doesnt-like-email-password-contain/58437)._
