Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and Implement Send Functionality in Mailer Classes with Usage Example #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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