Feature/email system integration 44#60
Open
14mT wants to merge 7 commits into
Open
Conversation
Used Resend, react email. Have been tested but this error still pops up: "Email attempted without being configured."
Email system have been tested and an actual email has been sent to an actual email.
*Forgot to mention in the previous commit: - Created a ---RESEND_API_KEY=re_HKa1RAzZ_5eJmc8TUkBxEFaFb2AgGhhAd --- for the purpose of testing. Tested an example welcome email (when new users are created), and it works as expected. Though the email is still use Resend's default sender email address. Next: Use the previously made welcome.tsx to do this. An email adapter / provider has been configured through Payload Checklist: - Email recipient, subject, and content can be configured dynamically (v) - Failed email attempts are handled safely (?) - Sensitive configuration values (i.e. API keys) are stored securely and not hardcoded (v) - Email functionality is reusable for future features (v) - Test emails can be sent through the system (v) - Tested (independently of frontend integration) and shows expected results (v)
MAJOR CHANGE IN USER.TS: - I changed the user.ts into user.tsx so that it can support the welcome email function (as it uses react email). - also in payload.config.ts Minor changes regarding the email system integration ticket: - Tried out the welcome function from lib/email/email_templates/welcome.tsx , and it works as expected.
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
Closes #
Description
Email System Integration #44
Created an email system with Resend with a field of: the recipient, subject of the email, and its content. The API key have been stored securely (in .env at the moment) and not hardcoded anywhere. The system can be reused for different features (as demonstrated with the welcome function).
Some testing proof:

(earliest testing success - email was able to be sent)
Checklist:
NOTES:
Checklist
How To Review
payload.config.ts
send_email.ts
welcome.tsx
user.tsx
Notes