# Passing email API key to container without hardcoding in app.yml

**URL:** <https://meta.discourse.org/t/passing-email-api-key-to-container-without-hardcoding-in-app-yml/349002>\
**Category:** Product Support\
**Created:** [January 25, 2025, 10:43pm UTC](https://meta.discourse.org/t/passing-email-api-key-to-container-without-hardcoding-in-app-yml/349002 "2025-01-25T22:43:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![0xDBFB7](https://avatars.discourse-cdn.com/v4/letter/0/53a042/32.png) [@0xDBFB7](https://meta.discourse.org/u/0xDBFB7)\
**Post date:** [January 26, 2025, 5:12pm UTC](https://meta.discourse.org/t/passing-email-api-key-to-container-without-hardcoding-in-app-yml/349002/3 "2025-01-26T17:12:51Z")

</div>

That worked great!

(for posterity: I needed to tweak the quoting a bit as well, like so:

```plaintext
./launcher rebuild app --docker-args "-e DISCOURSE_SMTP_PASSWORD=$DISCOURSE_SMTP_PASSWORD"

```

I got ` **ERROR** - 535 Authentication failed` otherwise - and in the last line of the rebuild console output you can see there’s an extra set of quotes in the command line. I think the env\_file variable declaration probably should also not have quotes around it, unlike my original post.)

thanks muchly for the help and have a wonderful day!

---

_[View the full topic](https://meta.discourse.org/t/passing-email-api-key-to-container-without-hardcoding-in-app-yml/349002)._
