Skip to content

feat(integrations): add html and text params to sendEmail - #2

Draft
egidijusj wants to merge 1 commit into
base44:mainfrom
egidijusj:feat/sendemail-html-text-fields
Draft

feat(integrations): add html and text params to sendEmail#2
egidijusj wants to merge 1 commit into
base44:mainfrom
egidijusj:feat/sendemail-html-text-fields

Conversation

@egidijusj

Copy link
Copy Markdown

Summary

  • Adds html (alias of body, same HTML slot) and text (plain-text part) as optional parameters to CoreIntegrations.sendEmail
  • body relaxed from required to optional (backward compatible)
  • Only non-nil fields are included in the JSON payload
  • Doc comments updated with truth table of valid/422 combinations
  • Adds testSendEmailWithHtmlAndText and testSendEmailTextOnly tests

Details

Mirrors the backend addition in base44-dev/apper#22289. Existing callers using body: are unaffected.

Test plan

  • testSendEmail — existing body-only call still works
  • testSendEmailRequestBody — verifies body field is sent correctly
  • testSendEmailWithHtmlAndText — verifies html+text multipart case, body absent
  • testSendEmailTextOnly — verifies text-only case

🤖 Generated with Claude Code

Mirrors the backend change in base44-dev/apper#22289. body is relaxed from
required to optional; html (alias of body) and text (plain-text part) are
added as optional parameters. Only non-nil fields are included in the JSON
payload. Doc comments updated with truth table of valid/422 combinations.
Adds testSendEmailWithHtmlAndText and testSendEmailTextOnly tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant