# Mandrillapp SMTP username brings this error

**URL:** https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439
**Category:** Self-hosting
**Created:** [November 20, 2017, 5:22pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439 "2017-11-20T17:22:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TomPeace](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@TomPeace](https://meta.discourse.org/u/TomPeace)
#### Post date: [November 20, 2017, 5:22pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/1 "2017-11-20T17:22:33Z")

</div>

I use Mandrillapp for my websites and mail delivery. All of them work fine but when I want to use the smtp username with Discourse, it gives me this error:

`./discourse-setup: line 383: [: too many arguments`

Probably the reason is that my username consists from three words. It’s like ‘This Is Username’. However, how am I supposed to install Discourse if such a username is not supported? All of my other websites & forums work fine with this. Any help is appreciated. Thank you.

---

<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: [November 20, 2017, 9:00pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/2 "2017-11-20T21:00:14Z")

</div>

The immediate solution is that you’ll need to edit `app.yml` by hand with and editor like `nano`. Make sure that you surround your username with quotes. I’m not quite sure if there are other problems down the line with spaces in passwords.

I’ll add to my list to fix those tests in `discourse-setup` so that they aren’t broken by spaces.

---

<div class="post-metadata">

### Author: ![TomPeace](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@TomPeace](https://meta.discourse.org/u/TomPeace)
#### Post date: [November 22, 2017, 2:26pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/3 "2017-11-22T14:26:07Z")

</div>

> [@pfaffman](#):
>
> Make sure that you surround your username with quotes.

I have tried both single quotes (‘SMTP Username’), double quotes (“SMTP Username”). In both cases, I did rebuild:

```
git pull
./launcher rebuild app

```

But nothing has worked. So I decided to setup a new SMTP with Elasticemail and now it works fine.

---

<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: [November 22, 2017, 3:52pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/4 "2017-11-22T15:52:42Z")

</div>

Hmm. I wondered about that. That’s down stream of discourse-setup. have seen triple double quotes in some places

“”“password with space”“”

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [November 22, 2017, 7:48pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/5 "2017-11-22T19:48:24Z")

</div>

I have a feeling it might have to do with the type of quotes used. It looks like there are what I call “curly quotes”.

In my experience, curly quotes look good in print media, but can cause problems when used in code.

True, the simple boring ASCII “straight quotes” may not look as nice, but for code they cause a lot fewer problems.

I don’t know where they are coming from (maybe they aren’t in the code and are being cooked in here?) but I think if you can not use them you’ll have less trouble.

---

<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: [November 22, 2017, 9:58pm UTC](https://meta.discourse.org/t/mandrillapp-smtp-username-brings-this-error/74439/6 "2017-11-22T21:58:19Z")

</div>

> [@Mittineague](#):
>
> It looks like there are what I call “curly quotes”.

Oh. You mean me. That’s what I get for trying to post from my phone. 🙂

Edit: Oh, looking again, I think that it’s Markdown being clever.
