Skip to content

feat: notify client by email when invoice is created#289

Open
raymondjoseph02 wants to merge 3 commits intodavedumto:mainfrom
raymondjoseph02:feat/invoice-client-email-notification
Open

feat: notify client by email when invoice is created#289
raymondjoseph02 wants to merge 3 commits intodavedumto:mainfrom
raymondjoseph02:feat/invoice-client-email-notification

Conversation

@raymondjoseph02
Copy link
Copy Markdown

Add sendInvoiceToClient to lib/email.ts and call it fire-and-forget at the end of POST /api/invoices so the client immediately receives a payment link email without blocking the API response.

  • Basic email format validation skips send for invalid addresses
  • Email failures are logged via .catch() and never surface as API errors
  • Unit tests assert correct params, resilience to send failure, and freelancerName fallback to user.email when name is null EOF

close #283

Add sendInvoiceToClient to lib/email.ts and call it fire-and-forget
at the end of POST /api/invoices so the client immediately receives
a payment link email without blocking the API response.

- Basic email format validation skips send for invalid addresses
- Email failures are logged via .catch() and never surface as API errors
- Unit tests assert correct params, resilience to send failure, and
  freelancerName fallback to user.email when name is null
EOF
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@raymondjoseph02 is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@raymondjoseph02 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@raymondjoseph02
Copy link
Copy Markdown
Author

Please merge this before another conflict comes up

@raymondjoseph02
Copy link
Copy Markdown
Author

second time i am fixing conflict on this issue

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.

[UX] Send payment link email to client on invoice creation

1 participant