Skip to content

Unable to use toMail from my notification #27

@abhiburk

Description

@abhiburk

Hey please guide me for this
I am using default notification mail function as given below but it never gets called now Please help me out of this. I have my own content in rate_your_experience mail blade file but that is not being use.
Check my screenshot this is what my email is looking in Inbox which should not look like. rate_your_experience blade file has my custom content,

Screenshot 2021-07-08 at 20-41-29 Mailtrap - Safe Email Testing

It seems that my markdown template is not in use when triggering email using below syntax.

public function toMail($notifiable)
{
    return (new MailMessage)
            ->subject("Rate Your Experience")
            ->markdown(
                'emails.rate_your_experience',
                [
                    'source' => $this->source,
                    'user' => $notifiable
                ]
            );
}

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