Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29957

Laravel mail: pass string instead of view

$
0
0

I want to send a confirmation e-mail using laravel.The laravel Mail::send() function only seems to accept a path to a file on the system.The problem is that my mailtemplates are stored in the database and not in a file on the system.

How can I pass plain content to the email?

Example:

$content = "Hi,welcome user!";Mail::send($content,$data,function(){});

Viewing all articles
Browse latest Browse all 29957

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>