wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.48k stars 1.18k forks source link

Add replyTo field to SendGrid provider and Email type #2045

Open hannesortmeier opened 4 months ago

hannesortmeier commented 4 months ago

Description

This PR introduces the following changes:

Add optional replyTo field to Email type (commit 7ddc0345dc6a7d26679779c50dc36483ba333695): This commit adds a new optional field replyTo to the Email type. This allows for specifying a different email address that recipients will reply to.

Add optional replyTo field to SendGrid provider (commit adae95b7afbdbbb73095b713d78c49376a8d82d7): This commit extends the SendGrid provider to support the new replyTo field. If provided, the SendGrid provider will use this field as the reply-to address in the emails it sends.

Document replyTo field for SendGrid provider (commit 1120faee609f8c10886abf22d259e4b58046f243): This commit adds documentation for the new replyTo field in the SendGrid provider. This helps to ensure that the usage of this new field is clear to other developers.

These changes provide more flexibility in handling replies to emails sent by the application since without the replyTo field set, replying to an E-Mail sent by SendGrid will result in a 550 Mailbox not found.

Select what type of change this PR introduces:

  1. [ ] Just code/docs improvement (no functional change).
  2. [ ] Bug fix (non-breaking change which fixes an issue).
  3. [x] New feature (non-breaking change which adds functionality).
  4. [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Update Waspc ChangeLog and version if needed

If you did a bug fix, new feature, or breaking change, that affects waspc, make sure you satisfy the following:

  1. [x] I updated ChangeLog.md with description of the change this PR introduces.
  2. [ ] I bumped waspc version in waspc.cabal to reflect changes I introduced, with regards to the version of the latest wasp release, if the bump was needed.
infomiho commented 4 months ago

Nice job! Thanks for the contribution.

There are couple of things we need to do before we can merge this:

infomiho commented 1 month ago

Closed by accident!