Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Self-hosted:Unable to invite members #1100

Open
Jackwew opened this issue Dec 24, 2024 · 14 comments
Open

[Bug] Self-hosted:Unable to invite members #1100

Jackwew opened this issue Dec 24, 2024 · 14 comments
Assignees

Comments

@Jackwew
Copy link

Jackwew commented Dec 24, 2024

Bug Description

Self hosting invites members via email, but invitees are unable to receive emails

How can I invite my team members to collaborate on the project

please help me

How to Reproduce

Self-hosted

Expected Behavior

Successfully invited members

Operating System

linux or windows

AppFlowy Version(s)

v0.7.8

Screenshots

image

image

Additional Context

No response

@khorshuheng
Copy link
Collaborator

khorshuheng commented Dec 24, 2024

Can you check the logs of AppFlowy cloud and see if there is any error about sending email? And just in case, check if the email ended up in spam folder.

@khorshuheng
Copy link
Collaborator

Also, if applicable, check if there is any error logs captured on the SMTP server as well, such as failing to send email because the destination is not one of the authorized email (eg. If you are in sandbox mode for Mailgun)

@khorshuheng khorshuheng self-assigned this Dec 24, 2024
@khorshuheng khorshuheng transferred this issue from AppFlowy-IO/AppFlowy Dec 24, 2024
@Jackwew
Copy link
Author

Jackwew commented Dec 24, 2024

I checked the spam emails and didn't receive any

Do you need to set email related services in the. env file

@Jackwew
Copy link
Author

Jackwew commented Dec 24, 2024

Also, if applicable, check if there is any error logs captured on the SMTP server as well, such as failing to send email because the destination is not one of the authorized email (eg. If you are in sandbox mode for Mailgun)
Do you need to configure SMTP in the. env file

@khorshuheng
Copy link
Collaborator

Check these env variables:

APPFLOWY_MAILER_SMTP_HOST=smtp.gmail.com

@Jackwew
Copy link
Author

Jackwew commented Dec 24, 2024

Check these env variables:

APPFLOWY_MAILER_SMTP_HOST=smtp.gmail.com

image
I haven't made any changes to this configuration

@khorshuheng
Copy link
Collaborator

khorshuheng commented Dec 24, 2024

These are just example, you will have to change this to your own SMTP host. For example, Gmail, Mailgun, sendgrid etc

In addition, there are two separate SMTP configuration. One for Appflowy cloud, and the other one for gotrue. For workspace invitation, the env variables are the one with the AppFlowy prefix

@Jackwew
Copy link
Author

Jackwew commented Dec 24, 2024

These are just example, you will have to change this to your own SMTP host. For example, Gmail, Mailgun, sendgrid etc

In addition, there are two separate SMTP configuration. One for Appflowy cloud, and the other one for gotrue. For workspace invitation, the env variables are the one with the AppFlowy prefix

Do you have an example of configuration
I will refer to how to configure it

@khorshuheng
Copy link
Collaborator

Which SMTP server do you want to use? Mailgun, Gmail, Sendgrid or some other services?

@Jackwew
Copy link
Author

Jackwew commented Dec 24, 2024

Which SMTP server do you want to use? Mailgun, Gmail, Sendgrid or some other services?

Gmail

@khorshuheng
Copy link
Collaborator

First, set up an app password following this guide: https://support.google.com/accounts/answer/185833?hl=en

This is the password that you will be using for SMTP password, instead of your regular Gmail password. Then replace user and email with your Gmail account.

After this, clear the rows/invites in the af_workspace_invitation table. Then restart Appflowy Cloud. Try sending the invitation again and see if it works this time.

@Jackwew
Copy link
Author

Jackwew commented Dec 25, 2024

First, set up an app password following this guide: https://support.google.com/accounts/answer/185833?hl=en

This is the password that you will be using for SMTP password, instead of your regular Gmail password. Then replace user and email with your Gmail account.

After this, clear the rows/invites in the af_workspace_invitation table. Then restart Appflowy Cloud. Try sending the invitation again and see if it works this time.

GOTRUE_SMTP_USER=email_sender@some_company.com // My email address
GOTRUE_SMTP_PASS=email_sender_password // Set application specific password
GOTRUE_SMTP_ADMIN_EMAIL=comp_admin@some_company.com // What should this be?

Do I need to replace these three configurations

@khorshuheng
Copy link
Collaborator

khorshuheng commented Dec 25, 2024

For the Admin email, just set it to the same value as your user.

@Jackwew
Copy link
Author

Jackwew commented Dec 27, 2024

For the Admin email, just set it to the same value as your user.

I did not configure the email successfully, but I can invite users through the backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants