# Invite emails not sending

**URL:** https://community.baserow.io/t/invite-emails-not-sending/2425
**Category:** Technical Help
**Tags:** emails, self-hosting, help-wanted
**Created:** [March 10, 2023, 2:37am UTC](https://community.baserow.io/t/invite-emails-not-sending/2425 "2023-03-10T02:37:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![davide](https://community.baserow.io/user_avatar/community.baserow.io/davide/32/2425_2.png) [@davide](https://community.baserow.io/u/davide)
#### Post date: [March 14, 2023, 11:04am UTC](https://community.baserow.io/t/invite-emails-not-sending/2425/2 "2023-03-14T11:04:30Z")

</div>

Hi @hugh,

the command should use `-e` instead of `-v` for all the environment variables.  
So the docker command should be something like this:

```auto
sudo docker run -e BASEROW_PUBLIC_URL=http://[MY IP]
–name baserow
-d
–restart unless-stopped
-v baserow_data:/baserow/data
-e EMAIL_SMTP=True
-e EMAIL_SMTP_USE_TLS=True
-e EMAIL_SMTP_HOST=‘smtp.gmail.com’
-e EMAIL_SMTP_USER=’[my email address]’
-e EMAIL_SMTP_PORT=587
-e EMAIL_SMTP_PASSWORD=’[my app-specific email password]’
-p 80:80
-p 443:443
-p 587:587
baserow/baserow:1.14.0

```

Without `-e`, you’re not overriding the defaults so what you can see is the default behavior in the logs that prints the email message to the standard output.

Please ensure to use an `app` password as described here if you’re using Gmail as SMTP server: [Sign in with App Passwords - Google Account Help](https://support.google.com/accounts/answer/185833?hl=en)

---

_[View the full topic](https://community.baserow.io/t/invite-emails-not-sending/2425)._
