T
Twenty10mo ago
paulyili

Emails greyed out?

how does the email function work? I can send a reset password to the users email. i can log on with google SSO but i dont know how to do the email function. I've set up my docker-compose with this. i dont think i've missed anything? (with proper credentials)
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- PG_DATABASE_URL=${PG_DATABASE_URL}
- FRONT_BASE_URL=${FRONT_BASE_URL}
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=/twenty-local-storage
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
- SERVER_URL=${SERVER_URL}
- PORT=${PORT}
- EMAIL_FROM_ADDRESS=${EMAIL_FROM_ADDRESS}
- EMAIL_SYSTEM_ADDRESS=${EMAIL_SYSTEM_ADDRESS}
- EMAIL_FROM_NAME=${EMAIL_FROM_NAME}
- EMAIL_SMTP_HOST=${EMAIL_SMTP_HOST}
- EMAIL_SMTP_PORT=${EMAIL_SMTP_PORT}
- EMAIL_SMTP_USER=${EMAIL_SMTP_USER}
- EMAIL_SMTP_PASSWORD=${EMAIL_SMTP_PASSWORD}
- PASSWORD_RESET_TOKEN_EXPIRES_IN=${PASSWORD_RESET_TOKEN_EXPIRES_IN}
- EMAIL_DRIVER=${EMAIL_DRIVER}
- MESSAGING_PROVIDER_GMAIL_ENABLED=${MESSAGING_PROVIDER_GMAIL_ENABLED}
- AUTH_GOOGLE_ENABLED=${AUTH_GOOGLE_ENABLED}
- AUTH_GOOGLE_CLIENT_ID=${AUTH_GOOGLE_CLIENT_ID}
- AUTH_GOOGLE_CLIENT_SECRET=${AUTH_GOOGLE_CLIENT_SECRET}
- FRONT_AUTH_CALLBACK_URL=${FRONT_AUTH_CALLBACK_URL}
- AUTH_GOOGLE_CALLBACK_URL=${AUTH_GOOGLE_CALLBACK_URL}
- MESSAGING_PROVIDER_GMAIL_CALLBACK_URL=${MESSAGING_PROVIDER_GMAIL_CALLBACK_URL}
- IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}
environment:
- SIGN_IN_PREFILLED=${SIGN_IN_PREFILLED}
- PG_DATABASE_URL=${PG_DATABASE_URL}
- FRONT_BASE_URL=${FRONT_BASE_URL}
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=/twenty-local-storage
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- LOGIN_TOKEN_SECRET=${LOGIN_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
- SERVER_URL=${SERVER_URL}
- PORT=${PORT}
- EMAIL_FROM_ADDRESS=${EMAIL_FROM_ADDRESS}
- EMAIL_SYSTEM_ADDRESS=${EMAIL_SYSTEM_ADDRESS}
- EMAIL_FROM_NAME=${EMAIL_FROM_NAME}
- EMAIL_SMTP_HOST=${EMAIL_SMTP_HOST}
- EMAIL_SMTP_PORT=${EMAIL_SMTP_PORT}
- EMAIL_SMTP_USER=${EMAIL_SMTP_USER}
- EMAIL_SMTP_PASSWORD=${EMAIL_SMTP_PASSWORD}
- PASSWORD_RESET_TOKEN_EXPIRES_IN=${PASSWORD_RESET_TOKEN_EXPIRES_IN}
- EMAIL_DRIVER=${EMAIL_DRIVER}
- MESSAGING_PROVIDER_GMAIL_ENABLED=${MESSAGING_PROVIDER_GMAIL_ENABLED}
- AUTH_GOOGLE_ENABLED=${AUTH_GOOGLE_ENABLED}
- AUTH_GOOGLE_CLIENT_ID=${AUTH_GOOGLE_CLIENT_ID}
- AUTH_GOOGLE_CLIENT_SECRET=${AUTH_GOOGLE_CLIENT_SECRET}
- FRONT_AUTH_CALLBACK_URL=${FRONT_AUTH_CALLBACK_URL}
- AUTH_GOOGLE_CALLBACK_URL=${AUTH_GOOGLE_CALLBACK_URL}
- MESSAGING_PROVIDER_GMAIL_CALLBACK_URL=${MESSAGING_PROVIDER_GMAIL_CALLBACK_URL}
- IS_SIGN_UP_DISABLED=${IS_SIGN_UP_DISABLED}
No description
4 Replies
paulyili
paulyiliOP10mo ago
this is my .env
EMAIL_FROM_NAME=hello at mydomain
EMAIL_SMTP_HOST=smtp.gmail.com
EMAIL_SMTP_PORT=465
EMAIL_SMTP_PASSWORD=abcabcabc
PASSWORD_RESET_TOKEN_EXPIRES_IN=5m
EMAIL_DRIVER=smtp
MESSAGING_PROVIDER_GMAIL_ENABLED=true
AUTH_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=574023190351-clientidkey.apps.googleusercontent.com
AUTH_GOOGLE_CLIENT_SECRET=GOCSPX-secretkeyxyz
FRONT_AUTH_CALLBACK_URL=https://twenty.mydomain.com/verify
AUTH_GOOGLE_CALLBACK_URL=https://twenty.mydomain.com/auth/google/redirect
MESSAGING_PROVIDER_GMAIL_CALLBACK_URL=https://twenty.mydomain.com/auth/google-gmail/get-access-token
IS_SIGN_UP_DISABLED=true
EMAIL_FROM_NAME=hello at mydomain
EMAIL_SMTP_HOST=smtp.gmail.com
EMAIL_SMTP_PORT=465
EMAIL_SMTP_PASSWORD=abcabcabc
PASSWORD_RESET_TOKEN_EXPIRES_IN=5m
EMAIL_DRIVER=smtp
MESSAGING_PROVIDER_GMAIL_ENABLED=true
AUTH_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=574023190351-clientidkey.apps.googleusercontent.com
AUTH_GOOGLE_CLIENT_SECRET=GOCSPX-secretkeyxyz
FRONT_AUTH_CALLBACK_URL=https://twenty.mydomain.com/verify
AUTH_GOOGLE_CALLBACK_URL=https://twenty.mydomain.com/auth/google/redirect
MESSAGING_PROVIDER_GMAIL_CALLBACK_URL=https://twenty.mydomain.com/auth/google-gmail/get-access-token
IS_SIGN_UP_DISABLED=true
charles
charles10mo ago
There is still a featureFlag that you can add in your core.featureFlag table IS_MESSAGING_ENABLED
paulyili
paulyiliOP10mo ago
logged into the database and it says IS_MESSAGING_ENABLED | 20202020-1c25-4d02-bf25-6aeccf7ea419 | t so it appears enabled already i also enabled redis. installed it in docker on the same VM.
MESSAGE_QUEUE_TYPE=bull-mq
REDIS_HOST=192.168.1.123
REDIS_PORT=6379
MESSAGE_QUEUE_TYPE=bull-mq
REDIS_HOST=192.168.1.123
REDIS_PORT=6379
charles
charles10mo ago
The flag has been removed from main, it should be good!
Want results from more Discord servers?
Add your server