Skip to content

The sendMail {} method is not found in a controller #4

@veggie2u

Description

@veggie2u

I have successfully sent an email from a controller with the sendGridService.sendMail {} method, and using the builder. (That works great, so thanks!) However, just calling sendMail {} from a controller method give me an error.

There is a no such method error for MyController.sendMail() is applicable for argument types MyController$_display_closure1. It appears that the sendMail method isn't registered in the controller, or is not expecting a closure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions