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

Mailer does not render plain text mails #23822

Closed
mbaierl opened this issue Apr 6, 2018 · 2 comments
Closed

Mailer does not render plain text mails #23822

mbaierl opened this issue Apr 6, 2018 · 2 comments

Comments

@mbaierl
Copy link

mbaierl commented Apr 6, 2018

If there is a Mailable that has only a plain text view rendering fails.

Here is the Mailable:

class MessageToUserMail extends Mailable {
...
public function build()
    {
		return $this->text('emails.message-to-user');
    }

Here is the Controller code:

public function mailTests()
	{
		$mail = new MessageToUserMail();
		return $mail->render();
	}

The result is a "View [] not found." exception.

Expected result would be the plain text of the mail rendered in the browser.

@leadegroot
Copy link

See laravel/ideas#1058 - recently noticed bug

@mbaierl
Copy link
Author

mbaierl commented Apr 12, 2018

Yeah, it seems to be the same issue.

taylorotwell pushed a commit that referenced this issue Apr 25, 2018
…st in plain text format (#23981)

* Render the right view when sending mails just in plain text format (#23822)

* formatting

* Fixed code duplication
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

No branches or pull requests

3 participants