Skip to content

Conversation

@Risad212
Copy link

@Risad212 Risad212 commented Nov 1, 2024

This update implements the send() method in both the SmtpMailer and SendGridMailer classes, providing output to demonstrate their functionality. Additionally, I added a sendWelcome() method to the SendWelcomeMessage class, which calls the send() method on the provided mailer instance.

A usage example is included to showcase how SendWelcomeMessage can work with different mailer implementations, adhering to the Dependency Inversion Principle (DIP). This enhances code clarity and illustrates how the mailers can be easily swapped.

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