Issues sending emails

Hi @peracchi , Sorry for the delay!

Edit: Just to clarify, we don’t send any emails when you first sign up. The only emails we ever send are password reset emails, workspace invite emails and possibly some emails related to account deletion.

I’ve updated my instructions from above to match the new Docker setup. One day I would love to add an email test button somewhere in the settings page!

These instructions are assuming you are using the baserow/baserow:XYZ image (which you are, just for future readers!)

  1. Make sure your Baserow is running as normal (docker-compose up -d etc)
  2. Now open a shell into your Baserow container:
# This will setup the venv, env variables etc for you! 
docker exec -it baserow /baserow.sh backend-cmd bash -c bash
  1. Now change to the backend directory
cd /baserow/backend
  1. Open the Python Shell:
./baserow shell
  1. Now try copy and pasting the following into the newly opened baserow shell after replacing the REPLACE_WITH_TO_EMAIL_ADDRESS with the email address you want to test sending an email to.
from django.core.mail import EmailMessage
from django.conf import settings

email = EmailMessage(
    'title',
    'msg',
    settings.FROM_EMAIL,
    ['REPLACE_WITH_TO_EMAIL_ADDRESS'],
)
email.send(fail_silently=False)

I’ve not personally tested these instructions so perhaps there is a typo, let me know if it doesn’t work!