-
Notifications
You must be signed in to change notification settings - Fork 12
Seth/to arrays #49
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
Seth/to arrays #49
Conversation
- Introduced `sendWithTemplate` action to handle sending emails with templates. - Updated `sendEmail` function to accept both traditional and template-based email formats. - Enhanced validation to ensure either content or template is provided, but not both. - Added tests for template email functionality, including acceptance and rejection scenarios. - Updated schema and shared types to include template-related fields.
Add support for template-based emails in sendEmail function
|
Caution Review failedThe pull request is closed. WalkthroughA new email template feature is being added to the email client library, enabling users to send templated emails with variable substitution. The changes introduce a Template type with id and variables, update the SendEmailOptions to a discriminated union supporting both traditional and template-based payloads, make the subject optional when using templates, and include validation to enforce template and content constraints. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
Comment |
commit: |
This is merging the already approved template branch into main
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.