Skip to content

Add Sendgrid mailer for real email integration#27

Open
henriqueln7 wants to merge 1 commit intomasterfrom
add-sendgrid-mailer
Open

Add Sendgrid mailer for real email integration#27
henriqueln7 wants to merge 1 commit intomasterfrom
add-sendgrid-mailer

Conversation

@henriqueln7
Copy link
Copy Markdown
Owner

@henriqueln7 henriqueln7 commented Jul 26, 2024

Related to #17

Integrate Sendgrid email provider for real email sending.

  • Add SendgridMailer class: Implement the Mailer interface, use Sendgrid API to send real emails, and add a constructor to accept Sendgrid API key.
  • Update application.yml: Add Sendgrid API configuration and sendgrid.api.key property to store the Sendgrid API key.
  • Modify FakeMailer class: Remove the @Primary annotation and add a @Profile("dev") annotation to use this class only in the development environment.

For more details, open the Copilot Workspace session.

Related to #17

Integrate Sendgrid email provider for real email sending.

* **Add SendgridMailer class**: Implement the `Mailer` interface, use Sendgrid API to send real emails, and add a constructor to accept Sendgrid API key.
* **Update application.yml**: Add Sendgrid API configuration and `sendgrid.api.key` property to store the Sendgrid API key.
* **Modify FakeMailer class**: Remove the `@Primary` annotation and add a `@Profile("dev")` annotation to use this class only in the development environment.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/henriqueln7/api-mercadolivrev2/issues/17?shareId=XXXX-XXXX-XXXX-XXXX).
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