Probably said before but since a friend needed help, I figured I would post this here:
How to set up users in Bubble without requiring their actual email addresses, by creating a fake email entry:
- Unique Identifier:
Start by choosing a unique identifier for each user. This could be something like their phone number, username, or any other unique data specific to the user. The uniqueness of this identifier is crucial because it will serve as the base for creating a fake email address
- Creating a Fake Email Address:
Use the unique identifier as the first part of the email. For example, if you’re using a phone number, the email might start as
Append this identifier with a fake domain. This domain doesn’t need to be a real, active domain. It’s just a placeholder to satisfy the email format requirement in Bubble. For instance,
@user.com. So, the full fake email for the phone number example would be `[email protected]’
- Custom Usernames:
If each user creates a custom username, you can use this as part of the fake email. For example, a username like ‘Sammich’ would become part of the email:
To enhance uniqueness, append a random string or number to the username before the domain. For example,
- Logging In:
When a user tries to log in, you’ll use the “log the user in” function in Bubble.
You’ll take the username or identifier they provide and programmatically append the preset fake email ending. For example, if a user logs in with the username ‘Sammich’, the system will automatically complete their email as
[email protected](assuming ‘1234567’ is the random string you’ve appended).
- Why This Works:
Bubble requires an email for user registration and login, but it doesn’t need to be a real email address. By using this method, you can create a user account without needing the user’s actual email.
This approach allows you to manage user accounts internally while keeping the user experience simple and straightforward.
It’s important to make sure that whatever method you use for generating these fake emails consistently produces unique addresses for each user. Also, be aware that since these are not real email addresses, you won’t be able to use them for email communications or email-based password recovery.