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

Laravel 9 - Error when sending email with priority using MailMessage #41119

Closed
kido1611 opened this issue Feb 19, 2022 · 3 comments · Fixed by #41120
Closed

Laravel 9 - Error when sending email with priority using MailMessage #41119

kido1611 opened this issue Feb 19, 2022 · 3 comments · Fixed by #41120
Labels

Comments

@kido1611
Copy link

kido1611 commented Feb 19, 2022

  • Laravel Version: 9.1.0
  • PHP Version: 8.0.8

Description:

Sending email with priority using Illuminate\Notifications\Messages\MailMessage cause error:

Call to undefined method Illuminate\Mail\Message::setPriority()

This is because calling wrong function name. Need to replace from setPriority() to priority() in Illuminate\Notifications\Channels\MailChannel:146

@Jubeki
Copy link
Contributor

Jubeki commented Feb 19, 2022

This was fixed in Laravel 9.0.2 so just run composer update

@kido1611
Copy link
Author

kido1611 commented Feb 19, 2022

I'm sorry, I'm typo when writing laravel version and the class name. I was edit it.

@driesvints
Copy link
Member

A PR was sent in for this, thanks @Jubeki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants