Skip to content

Implement Functionality in send() Methods of Mailer Classes #7

@Risad212

Description

@Risad212

Currently, the send() methods in SmtpMailer and SendGridMailer are empty, making it hard to see how each mailer works in the example.

Suggested Fix
Add a simple implementation inside each send() method to make it clear which mailer is being used.
Update the SendWelcomeMessage class to include a method, like sendWelcome(), that calls send() on the mailer.
This will help others understand and test the Dependency Inversion Principle in action with this example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions